Regular API function

simInitScript / sim.initScript

Description Initializes/reinitializes a script. Cannot be called from within the script being reinitialized.
C/C++
synopsis
simInt simInitScript(simInt scriptHandle)
C/C++
parameters
scriptHandle: handle of the script to initialize/reinitialize
C/C++
return value
-1 in case of an error, 0 if the operation was not successful, 1 otherwise
Lua
synopsis
bool result=sim.initScript(int scriptHandle)
Lua
parameters
Similar to the C-function counterpart.
Lua
return values
result: whether the operation was successful
Python
synopsis
bool result=sim.initScript(int scriptHandle)

<