YoYo Games Wiki

event_perform_object(obj,type,num)

From YoYoGames Wiki

Description

This function performs the indicated event from the indicated object on the current instance.

Arguments

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);

See Also

Content from GMKB, was used to expand this article. The content was contributed by Weird Dragon.