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
Lua synopsis sim.setBoolParameter(number parameter,boolean boolState)
Lua parameters
Similar to the C-function counterpart
Lua return values
Remote API equiv.
B0-based remote API: simxSetBoolParameter
Legacy remote API: simxSetBooleanParameter

All regular API functions on one page