Set Flag
Signature
bool setFlag(string name, object value)
Description
Sets a flag to a specified value.
Returns whether the operation was successful (true
) or not (false
).
Arguments
Name
The name of the flag to set.
Value
The value of the flag.
Can be a bool, integer, double, or string.
Notes
Throws an error if the name is empty, the flag already exists or is owned by another script.
Last updated