Script:set: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 12: | Line 12: | ||
For {{int}} and {{number}} variables, string variables passed to <code><{{Highlight|value|value}}></code> are not automatically dereferenced. | For {{int}} and {{number}} variables, string variables passed to <code><{{Highlight|value|value}}></code> are not automatically dereferenced. | ||
[[Category:Script commands changing variables]] |
Latest revision as of 21:20, 8 July 2022
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.