event_object;
Returns: Real
This read-only variable returns object index of the
instance which is running the event being checked.
global.obj = event_object;
The above code stores the object index of the instance performing the event in a global variable.