external_call

Call a previously defined external function.

Syntax:

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:

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

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


Back: Miscellaneous
Next: external_free
© Copyright YoYo Games Ltd. 2018 All Rights Reserved