functionNameAtScriptName: a string representing the function name and script name, e.g. myFunctionName@theScriptName. When the script is not associated with an object or name, then just specify the function name.
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. A script name needs to be specified (i.e. the object name where the script is attached)
sim.scripttype_customizationscript (6): a customization script will be called. A script name needs to be specified (i.e. the object name where the script is attached)
sim.scripttype_addonscript (2): an add-on script will be called (the add-on needs to be running). A script name needs to be specified (e.g. for add-on simAddOnScript-b0RemoteApiServer.lua, b0RemoteApiServer is the script name)
...: any number of arguments that will be handed over to the called function.
|