Calls the scripts user_event0.gml – user_event15.gml from the mod’s scripts folder, within the context of the instance using this function and the script it’s used in.
Argument | Type | Description |
---|---|---|
num | :real | The number of the user event script to run. Must be between 0 and 15. |
Example, called from attack_update.gml:
//This code runs a custom event during certain points in USPECIAL and FSPECIAL. This could be things like building meter or activating a status effect, but really it's up to you.
if (attack == AT_USPECIAL && window == 2 && window_timer == 1) {
user_event( 2 );
}
if (attack == AT_FSPECIAL && window == 4 == window_timer == 1) {
user_event( 2 );
}