event_perform(type,num)
From YoYoGames Wiki
Description
This function performs the indicated event for the current instance.
Arguments
- type (integer): the type of event (see the event type constants)
- num (integer): the number of event of the given type(see the event type constants)
Explanation
This function performs the indicated event 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. You can use this to e.g. simulate mouse clicks.
Examples
To perform the create event, use
event_perform(ev_create,0);
To peform the event for the alarm 3, use
event_perform(ev_alarm,3)
And to simulate a keypress for the Enter key, use
event_perform(ev_keypress,vk_enter)
See the keycode constants for the constant to simulate other keypress events.
See Also
Content from GMKB, was used to expand this article. The content was contributed by Weird Dragon.

