Event perform object

Explanation
This function performs the indicated event of the indicated object on the current instance. All actions in that particular event are performed. For details on the event types and numbers see the event type constants. Note that the event is taken from another object but applied to the 'current instance. If you want to use the event from the instance's object, use the function event_perform instead.

Examples
The following code performs the actions in the alarm 2 event as defined in the object obj_ball to the current instance.

event_perform_object(obj_ball,ev_alarm,2);