event_object

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

 

Syntax:

event_object;

 

Returns:

Object Asset

 

Example:

global.obj = event_object;

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