Thank you very much.
One more question related to the visible and invisible.
This is voor my muzzle flash, so it has to be visible en then invisible when firing a shot.
Zo I use

ent_muzzle.flags2 |= VISIBLE;

end at the end of the code

ent_muzzle.flags |= INVISIBLE;

to hide it.
But when it hides and I fire again, I cant make it display again.
I think that's the problem of having to types of flags...

First I set flags2 to visible, and after that flags to invisible.
So visible is active, but it's been overrided by flags.
I think my solution is to clear invisible from the flags part, but how can I do that?


The best games are the games you create yourself.