event_action

The index of the action that is currently being executed.

Syntax:

event_action;


Returns: Real


Description

This read-only variable returned the index of the action currently being executed, starting at 0 on previous versions of GameMaker. However, this is now an obsolete function in GameMaker Studio 2. It has been left in for legacy support only, and will always return 0 as all actions are concatenated together to improve execution speed.


Example:

num = event_action;

The above code stores the current action number in the variable "num".


Back: Generating Events
Next: event_number
© Copyright YoYo Games Ltd. 2018 All Rights Reserved