Regular API function

simGetInt32Parameter / sim.getInt32Parameter

Description Retrieves an integer value. See the integer parameter identifiers. See also sim.setInt32Parameter, sim.getBoolParameter, sim.getFloatParameter, sim.getArrayParameter and sim.getStringParameter.
C synopsis simInt simGetInt32Parameter(simInt parameter,simInt* intState)
C parameters
intState: value of the parameter
C return value
-1 if operation was not successful
Lua synopsis number parameterValue=sim.getInt32Parameter(number parameter)
Lua parameters
parameter: parameter identifier (sim_intparam_...)
Lua return values
parameterValue: value of the parameter
Remote API equiv.
B0-based remote API: simxGetIntParameter
Legacy remote API: simxGetIntegerParameter

All regular API functions on one page