Then when you remove it, just make it like this:
Code:
#define RESPAWN_TIME how_much_time_in_float_here
public destroy_entity(id)
{
// do the remove_entity stuff here by yourself
set_task( RESPAWN_TIME, "respawn", id)
return WHATEVER
}
public respawn(id)
{
//do the entity creation here by yourself
return WHATEVER
}
If your thing is non-id, just use read_data thingy to acquire stuff...
__________________