sim.callScriptFunction

Calls a script function (from a plugin, the main client application, or from another script). This represents a user callback inside of a script. The target script must be initialized for this call to succeed, e.g. when calling simulation scripts, then simulation must be running

Synopsis

... = sim.callScriptFunction(string functionName, int scriptHandle, ...) ... = sim.callScriptFunction(string functionName, int scriptHandle, ...)

Arguments

  • functionName: the function to call.
  • scriptHandle: the handle of the script, or sim.handle_self to target the current script. See sim.getScript
  • ...: any number of arguments that will be handed over to the called function.

Return values

  • ...: any number of return values from the called function.


See also: