event_object

The object index for which the current event is being executed.

Syntax:

event_object;


Returns: Real


Description

This read-only variable returns object index of the instance which is running the event being checked.


Example:

global.obj = event_object;

The above code stores the object index of the instance performing the event in a global variable.


Back: Generating Events
Next: event_type
© Copyright YoYo Games Ltd. 2019 All Rights Reserved