Regular API function

simSetInt32Parameter / sim.setInt32Parameter

Description Sets an integer parameter. See also sim.getInt32Parameter, sim.setBoolParameter, sim.setArrayParameter and sim.setFloatParameter.
C synopsis simInt simSetInt32Parameter(simInt parameter,simInt intState)
C parameters
intState: new 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.setInt32Parameter(number parameter,number intState)
Lua parameters
Same as C-function
Lua return values
Same as C-function
Remote API equiv.
B0-based remote API: simxSetIntParameter
Legacy remote API: simxSetIntegerParameter

All regular API functions on one page