This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== SetField/SetFieldFloat ==== Set the value of a field === Description === <code>SetField( fieldno, value )</code> <code>SetFieldFloat( fieldno, Float:value )</code> 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. === Parameters === | ''fieldno'' | Which field to fetch | | ''value'' | Value to set the field to (integer for SetField, Float for SetFieldFloat) | === Return value === None === Example usage === <code javascript> 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. </code> ezeio2/scriptref/setfield.txt Last modified: 2020-09-16 23:15by andreh Log In