Regular API function

simSetScriptAttribute / sim.setScriptAttribute

Description Sets various script attributes or properties. See also sim.getScriptAttribute.
C synopsis simInt simSetScriptAttribute(simInt scriptHandle,simInt attributeID,simFloat floatVal,simInt intOrBoolVal)
C parameters
scriptHandle: handle of a script
attributeID: the script attributeID
floatVal: the floating point attribute (if applicable)
intOrBoolVal: the integer or Boolean attribute (if applicable)
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.setScriptAttribute(number scriptHandle,number attributeID,number/boolean attribute)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page