event_type

Returns the type of event currently being executed.

Syntax:

event_type;


Returns: Real


Description

This read-only variable returns the type of event currently being executed, which can be one of the following constants:

For a full list of the constants that are related to the different events see event_perform, and if you should need the event number (ie: the sub event), you should be checking the event_number.


Example:

show_debug_message("Current Event = " + string(event_type))

The above code will show a debug message with the event type currently being performed.


Back: Generating Events
Next: event_action
© Copyright YoYo Games Ltd. 2015 All Rights Reserved