Event handlers

An event handler is a block of code, which is executed when a certain event is triggered. For example if the player clicks on an actor object, a “LeftClick” event is applied to the actor. There is number of standard events generated by the engine (low level events), plus you can define your own events and apply them to your objects using the “ApplyEvent” method (high level events).

Example:

on "LeftClick"
{
  // some code here
}


Note

Unlike the variable and keyword names, the event names are NOT case sensitive.