Set the value of a field


SetField( fieldno, value )
SetFieldFloat( fieldno, Float:value )

Set the integer or float 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.


fieldno Which field to fetch
value Value to set the field to (integer for SetField, Float for SetFieldFloat)

Return value


Example usage

   new x;
   SetField(4, 123);   
   // Field 4 is set to the value 123.
   SetFieldFloat(4, 123.45);
   // Field 4 is set to the value 123.45.
  • ezeio2/scriptref/setfield.txt
  • Last modified: 2020-09-16 23:15
  • by andreh