'Call' function (EN) - Archie-osu/ProjectDELTA GitHub Wiki
Calls a GameMaker: Studio function with user-supplied arguments and returns the result of the function.
<RValue> Call(
<string> FunctionName,
<RValue?> OptionalArgs
);Name
Type: String
The name of the GameMaker function, as seen in the YoYoGames documentation. Examples: variable_instance_get, window_set_fullscreen.
OptionalArgs
Type: RValues
Arguments which will get supplied to the called function, parsed from left-to-right, separated by a comma.
Type: RValue
The result of the GameMaker function. Use the kind member or view the YoYoGames documentation to view the return value for your specific function.
Call("room_goto", RValue(67)); -- Call room_goto(67) - 67 is the first argument, and has to be a RValue (hence the conversion to RValue)