Regular API function

simGetInt32Parameter
remote API equivalent: simxGetIntegerParameter
RosPlugin API equivalent: simRosGetIntegerParameter

Description Retrieves an integer value. See the integer parameter identifiers. See also simSetInt32Parameter, simGetBoolParameter, simGetFloatParameter, simGetArrayParameter and simGetStringParameter.
C synopsis simInt simGetInt32Parameter(simInt parameter,simInt* intState)
C parameters
intState: value of 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 parameterValue=simGetInt32Parameter(number parameter)
Lua parameters
parameter: parameter identifier (sim_intparam_...)
Lua return values
parameterValue: value of the parameter or nil in case of an error

All regular API functions on one page