EVENT_SHOOT

ENABLE_SHOOT

Hit by a c_trace instruction with ACTIVATE_SHOOT.

Modifies

you - pointer to tracing entity, if any.

Example:

function shoot_event() 
{
  if (event_type == EVENT_SHOOT) 
  {
     ent_playsound(my,whamm,50);
     ent_remove(me); // disappear when hit
  }
}

action exploding_barrel_shoot() 
{
  my.ENABLE_SHOOT = ON;
  my.emask |= ENABLE_SHOOT;
  my.event = shoot_event;
}

See also:

event, c_trace, EVENT_SONAR