Regular API function

simAddScript

Description Inserts a new script. Use with care when simulation is running. See also simAssociateScriptWithObject.
C synopsis simInt simAddScript(simInt scriptType)
C parameters
scriptType: type of the script.
C return value
handle of the new script, or -1 in case of an error
Lua synopsis number scriptHandle=simAddScript(number scriptType)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page