Regular API function

simInitScript / sim.initScript

Description Initializes/reinitializes a script. Cannot be called from within the script being reinitialized.
C synopsis simInt simInitScript(simInt scriptHandle)
C parameters
scriptHandle: handle of the script to initialize/reinitialize
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