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