Quote:
Originally Posted by Natsheh
Alright, a solution don't use remove_entity, use instead the other method which is by setting an entity flags to FL_KILLME then call entity think, its more reliable safer way !
|
That's definitely good to know, thanks. I'm familiar with FL_KILLME but it never worked for me. Probably because I'm unfamiliar with calling entity think and didn't know you had to do that.
I made this stock. Did I do it properly?...
PHP Code:
stock kill_entity(ent)
{
set_pev(ent, pev_flags, pev(ent, pev_flags) | FL_KILLME);
set_pev(ent, pev_nextthink, get_gametime() + 0.01);
dllfunc(DLLFunc_Think, ent);
}
__________________