set
Jump to navigation
Jump to search
The set
script command is used to set a script variable for an entity.
Usage
set <variable> <value*>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
variable |
variable |
Name of the variable to set |
value |
value or variable |
Value to set the variable to |
The first character of the variable name determines the variable type. System variables (those starting with ^
) cannot be set.
The context entity is ignored when setting global variables.
For int
and number
variables, string variables passed to <value>
are not automatically dereferenced.