Create Flag
Signatures
bool createFlag(string name)
bool createFlag(string name, object value)Description
Creates a flag that can be used to communicate between different scripts.
Returns whether the operation was successful (true) or not (false).
Arguments
Name
The name of the flag to create.
Value
The value of the flag.
Can be a bool, integer, double, or string.
Is optional and set to false by default.
Notes
Throws an error if the name is empty, the flag already exists or is owned by another script.
Last updated