Regular API function

simSetStringParameter / sim.setStringParameter

Description Sets a string parameter. See also sim.getStringParameter, sim.setBoolParameter, sim.setArrayParameter, sim.setFloatParameter and sim.setInt32Parameter.
C synopsis simInt simSetStringParameter(simInt parameter,const simChar* stringState)
C parameters
stringState: new state for the parameter
C return value
1 if operation was successful. -1 if parameter is not known
Lua synopsis number result=sim.setStringParameter(number parameter,string stringState)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page