Script:inc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptCommandPage |description=add a value to a script variable |parameters= variable variable Name of the variable to add to value number Value to add...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ScriptCommandPage | {{ScriptCommandPage | ||
|description=add a value to a [[Script:Variables|script variable]] | |description=add a value to a [[Script:Variables|script variable]] | ||
|context=any | |||
|parameters= | |parameters= | ||
variable variable Name of the variable to add to | variable variable Name of the variable to add to | ||
value number Value to add to the variable | value number Value to add to the variable | ||
}} | }} | ||
The context entity is ignored when modifying global variables. |
Revision as of 23:05, 17 April 2020
The inc
script command is used to add a value to a script variable for an entity.
Usage
inc <variable> <value>
Context: Any Entity
Parameters:
Parameter | Type | Description |
---|---|---|
variable |
variable |
Name of the variable to add to |
value |
number or variable |
Value to add to the variable |
The context entity is ignored when modifying global variables.