Quote:
Originally Posted by lexzor
use remove_entity before nextthink
the fastest you can set a entity think (as far as i know) is 0.01
|
Something like this ?
PHP Code:
public remove_all_bh(id)
{
new ent = 33;
while((ent = find_ent_by_class(ent, gBlackHole_EntName)) != 0) {
if( pev(ent, pev_owner) != id ) continue;
// set_pev(ent, pev_flags, FL_KILLME)
remove_entity(ent);
set_pev(ent, pev_nextthink, get_gametime() + 0.1);
}
}