Regular API function

simStopSimulation / sim.stopSimulation

Description Requests a stop of the running simulation. See also sim.startSimulation, sim.pauseSimulation and sim.getSimulationState. See also the simulation state diagram.
C/C++
synopsis
simInt simStopSimulation()
C/C++
parameters
C/C++
return value
-1 in case of an error, 0 if the operation could not be performed. >0 in case of success.
Lua
synopsis
int result=sim.stopSimulation()
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int result=sim.stopSimulation()

<