Regular API function
simHandleMainScript
Description
Handles (executes) the main script, i.e. the main simulation loop.
C/C++
synopsis
simInt simHandleMainScript()
C/C++
parameters
C/C++
return value
A
main script execution result
. If the return value contains sim.script_main_script_not_called, then the main script was not called (e.g. because a plugin hindered it when it received the
sim.message_eventcallback_mainscriptabouttobecalled
message). Otherwise, the main script was called and
simAdvanceSimulationByOneStep
should be executed.
Lua
synopsis
Lua
parameters
Lua
return values
Python
synopsis