Regular API function

sim.getScript

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

<