Regular API function

sim.callScriptFunction

Description 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. See also sim.executeScriptString.
C/C++
synopsis
From C/C++, call simCallScriptFunctionEx instead.
C/C++
parameters
C/C++
return value
Lua
synopsis
...=sim.callScriptFunction(string functionNameAtScriptName,int scriptHandleOrType,...)
Lua
parameters
functionName: the function to call.
scriptHandle: the handle of the script. See sim.getScript
...: any number of arguments that will be handed over to the called function.
Lua
return values
...: any number of return values from the called function.
Python
synopsis
...=sim.callScriptFunction(string functionName,int scriptHandle,...)

<