EVENT_PUSH

ENABLE_PUSH

Von einer anderen Entity mit einem höheren push- oder gleichem group-Parameter überrannt.

Modifiziert:

you Pointer auf die stossende Entity
normal Normalen-Vektor der getroffenen Oberfläche
bounce Vektor in Abprallrichtung

Beispiel:

function bounce_event()
{
  if (event_type == EVENT_PUSH)
  {
    ent_playsound(my,explode,50);
    ptr_remove(me); // disappear when hit
  }
}

action exploding_barrel_push() 
{
  my.push = 3;		 // only get pushed by entities with push above 3
  my.ENABLE_PUSH = ON; // sensible for push collision
  my.emask |= ENABLE_PUSH;
  my.event = bounce_event;
  ...
}

Siehe auch:

event, c_move, push, group, EVENT_IMPACT

► Aktuelle Version Online