This is an old revision of the document!
SetField
Set the value of a field
Description
SetField( fieldno, value )
Set the integer value of a field and flag the value as changed.
Note that the Math logic for the field is continuously evaluated, so if the math logic results in a different value, it will immediately overwrite the value set by this command. To only set the field from script logic, leave the Math blank.
Parameters
fieldno | Which field to fetch |
value | Value to set the field to (integer) |
Return value
None
Example usage
new x; SetField(4, 123); // Field 4 is set to the value 123.