Regular API function

simSetBoolParameter / sim.setBoolParameter

Description Sets a boolean parameter. See also sim.getBoolParameter, sim.setInt32Parameter, sim.setArrayParameter and sim.setFloatParameter.
C synopsis simInt simSetBoolParameter(simInt parameter,simBool boolState)
C parameters
boolState: new boolean state for the parameter
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=sim.setBoolParameter(number parameter,boolean boolState)
Lua parameters
Same as C-function
Lua return values
Same as C-function
Remote API equiv.
B0-based remote API: simxSetBoolParameter
Legacy remote API: simxSetBooleanParameter

All regular API functions on one page