Category:Gamearray manipulation: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) Created page with "'''gamearray''' <name> <size> A gamearray is a CON version of the array data type common in programming languages. The size parameter specif..." |
No edit summary |
||
Line 1: | Line 1: | ||
'''gamearray''' <name> <size> | '''gamearray''' <name> <size> | ||
A gamearray is a [[Scripting|CON]] version of the [[Wikipedia:Array|array data type]] common in programming languages. | A gamearray is a [[Scripting|CON]] version of the [[Wikipedia:Array|array data type]] common in programming languages. In a practical sense, a gamearray works like a global [[gamevars]]s which a different value can be set for each index. Similarly, gamearrays are not reset when a map is loaded. | ||
The size parameter specifies how many values the array holds. Values in the array are accessed as <name>[<index>] with any command that reads from [[gamevar]]s. Values can only be set with [[setarray]]. | |||
WARNING: As of the May 16, 2008 snapshot, some commands may crash when used with a gamearray, so to be safe, use [[setvarvar]] to copy the value to a [[gamevar]]. | |||
[[Category:Gamevar manipulation]] | [[Category:Gamevar manipulation]] |
Revision as of 20:56, 6 September 2014
gamearray <name> <size>
A gamearray is a CON version of the array data type common in programming languages. In a practical sense, a gamearray works like a global gamevarss which a different value can be set for each index. Similarly, gamearrays are not reset when a map is loaded.
The size parameter specifies how many values the array holds. Values in the array are accessed as <name>[<index>] with any command that reads from gamevars. Values can only be set with setarray.
WARNING: As of the May 16, 2008 snapshot, some commands may crash when used with a gamearray, so to be safe, use setvarvar to copy the value to a gamevar.
Pages in category "Gamearray manipulation"
The following 11 pages are in this category, out of 11 total.