put this in the function that is called when the entity is shot
function get_shot
{
if(event_type==event_impact) // entity was hit by a bullet
{
sleep(4); //wait 4 seconds
my.invisible=on; //turn invisible
my.passable=on; //turn passable
}
}
//////////////////
action get_shot_ent // this is the enemy to be shot
{
my.enable_entity=on; //make the enemy sensible to getting hit with c_move
my.event=get_shot; // run this function when hit
}