EVENT_SONAR

ENABLE_SONAR

Von einer c_trace -Anweisung mit ACTIVATE_SONAR getroffen.

Modifiziert:

you - Pointer auf tracende Entity, so es eine gibt.

Beispiel:

function sonar_event() 
{
  if (event_type == EVENT_SONAR) 
  {
     ent_playsound(my,whamm,50);
     ptr_remove(me); // disappear when hit
  }
}

action exploding_barrel_sonar() 
{
  my.ENABLE_SONAR = ON;
  my.emask |= ENABLE_SONAR;
  my.event = sonar_event;
}

Siehe auch:

event, c_trace, EVENT_SHOOT

► Aktuelle Version Online