Skip to content

Game events

You can listen to any game event by declaring following function:

function on_event_name(ev)

where event_name is event name you want to listen (so, for example, to listen player_hurt you must declare on_player_hurt). ev is type of game_event.

A usage example of this type of forwards is located in Examples section. Events list: here