Regular API function

simSetScriptAttribute / sim.setScriptAttribute

Description Deprecated. See the functions related to script parameters instead.
C/C++
synopsis
int simSetScriptAttribute(int scriptHandle,int attributeID,double floatVal,int intOrBoolVal)
C/C++
parameters
scriptHandle: handle of a script
attributeID: the script attributeID
floatVal: the floating point attribute (if applicable)
intOrBoolVal: the integer or bool attribute (if applicable)
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.setScriptAttribute(int scriptHandle,int attributeID,number/bool attribute)
Lua
parameters
Similar to the C-function counterpart
Lua
return values