on_ent_remove
The on_ent_remove event is triggered when an entity is about to get removed, and can be used f.i. to unregister the entity from an external library.
A7.85
Type
Event
Example:
function on_ent_remove_event(ENTITY* ent)
{
if (ent.body)
pXent_settype(ent,0,0); // unregister the entity from the physics system
}
See also:
on_mouse_left, on_close, on_anykey, on_client, on_server, on_level, on_exit
► latest
version online