scriptHandleOrType: the handle of the script, otherwise the type of the script:
sim_scripttype_mainscript (0): the main script will be called.
sim_scripttype_childscript (1): a child script will be called. In that case, functionNameAtScriptName should also contain the name of the object associated with the script.
sim_scripttype_customizationscript (6): a customization script will be called. In that case, functionNameAtScriptName should also contain the name of the object associated with the script.
sim.scripttype_addonscript (2): an add-on script will be called (the add-on needs to be running). In that case, functionNameAtScriptName should also contain the name of the script (e.g. for add-on simAddOnScript-b0RemoteApiServer.lua, b0RemoteApiServer is the script name)
functionNameAtScriptName: the name of the Lua function to call in the specified script. If scriptHandleOrType is sim_scripttype_childscript, sim_scripttype_customizationscript or sim_scripttype_addonscript, then functionNameAtScriptName should also contain the name of the script: "functionName@scriptName".
|