[5.4] Setting draw order for a character
Posted: Fri Jan 26, 2018 10:19 pm
I am trying to draw a character last, or in other words in front of everything else. I understand that you can achieve this with entities by setting the flag 'ENTITY_SLOT_RENDER_NEAREST', however since I am using an AdvancedAnimationComponent this doesn't seem possible. I have tried to do the following instead, but it just makes the character invisible:
Edit: Since setting the character flag seems to be a lost cause, does anyone know of any alternative methods for achieving what I want?
Code: Select all
uint32 flags = m_pAnimationComponent->GetCharacter()->GetFlags();
m_pAnimationComponent->GetCharacter()->SetFlags(flags | CS_FLAG_DRAW_NEAR);