event_type

Variable, die, zur Angabe der Art von Event, zu Beginn vieler event-Funktionen gesetzt wird.

Typ:

var, read-only

Modifiziert von:

c_move, c_trace, c_scan und jedweder anderer Event-auslösender Funktion.

Beispiel:

function player_event()
{
  if (event_type == EVENT_BLOCK)
  {
    collision_with_block()
  }
 	
  if (event_type == EVENT_ENTITY)
  {
    collision_with_entity()
  }
}

Siehe auch:

Event

► Aktuelle Version Online