function remove_ent(ENTITY* ent,var seconds){
wait(seconds*-1);
ent_remove(ent);
}

make sure you are using something like this in the removed entity

Code:
action physics_object{
  //your stuff here
  while(me){
      //more of your stuff
      if(some_certeain_thing_happens)remove_ent(me,0.5);
      wait(1);
  }
}




3333333333