PHP Code:
public remove_ent(iEnt)
{
if(pev_valid(iEnt))
engfunc(EngFunc_RemoveEntity,iEnt);
}
and somewhere set task -> set_task(5.0,"remove_ent",entity_id);
for example in set_model function.
but inside touch you should remove_task(entity_id). cause it can double remove..so this is bad..
__________________