'Call' function (EN) - Archie-osu/ProjectDELTA GitHub Wiki

Call() function

Calls a GameMaker: Studio function with user-supplied arguments and returns the result of the function.

Syntax

<RValue> Call(
    <string> FunctionName,
    <RValue?> OptionalArgs
);

Parameters

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.

Return Value

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.

Example

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)
⚠️ **GitHub.com Fallback** ⚠️