How to hide a new created entity?

Posted By: Alessandro

How to hide a new created entity? - 08/18/10 22:33

Hello, sometimes one find some incredible problems :-(

I need to load an entity (MDL) but I don't want to show it immediately.
I used the following code:

Code:
ENTITY* wheelShadow = ent_create("buggy.mdl", vector(30, -35, -15), NULL);
wheelShadow.flags2 &=~SHOW;
wheelShadow.flags &=~SHOW;



The problem is the entity is always shown in the screen! Even if I eliminated SHOW flag. I even tried:

Code:
ENTITY* wheelShadow = ent_create("buggy.mdl", vector(30, -35, -15), NULL);
wheelShadow.flags2 = 0;
wheelShadow.flags = 0;



But I got the same result. Can you help me? Why I cannot hide the entity?

Thank you for your help!
Posted By: DJBMASTER

Re: How to hide a new created entity? - 08/18/10 22:35

Code:
wheelShadow = ent_create("buggy.mdl", vector(30, -35, -15), NULL);
set(wheelShadow,INVISIBLE);


Posted By: Alessandro

Re: How to hide a new created entity? - 08/18/10 22:44

Thank you!
I was in the wrong way since in the manual and it underlines that INVISIBLE flag is used for LEVEL ENTITIES!

Thank you again for your help!
© 2024 lite-C Forums