Regular API function

sim.getScriptHandle

Description Deprecated. See sim.getScript instead
C/C++
synopsis
From C/C++, call simGetScriptHandleEx instead.
C/C++
parameters
C/C++
return value
Lua
synopsis
int scriptHandle=sim.getScriptHandle(int scriptType,string scriptName='',int objectHandle=-1)
Lua
parameters
scriptType: the type of the script, or sim.handle_self
scriptName: the name of the add on. If the script is not an add-on, set this to en empty string.
objectHandle: the handle of the object the script is attached to, in case of a child- or customization script
Lua
return values
handle of the script, or -1 if the script does not exist
Python
synopsis
int scriptHandle=sim.getScriptHandle(int scriptType,string scriptName='',int objectHandle)