external_call

Call a previously defined external function.

Syntax:

GML Code Example

external_call(id, args[0...15]);


Argument Description
id The name of the function that you want to call
args[0...10] The different arguments that you want to pass through to the external function


Returns: Real or String


Description

If you have created an external function call to a dll or dylib using external_define, you can use this function to then call it. You supply the name of the previously defined function as well as each of the arguments it requires (each argument must be of the correct type, either real or string) and the function returns the result of the external call.


Example:

GML Code Example

a = external_call("MyMin", x, y);

The above example code calls a previously defined external function and stores the returned value in a variable.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here