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