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
Lua synopsis sim.setScriptAttribute(int scriptHandle,int attributeID,number/boolean attribute)
Lua parameters
Similar to the C-function counterpart
Lua return values