Gamearray: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
Fixed an inacurracy about reading from arrays.
Line 1: Line 1:
gamearray <name> <size>
gamearray <name> <size>


Defines an array. Values in the array are accessed as <array>[<index>] <[[gamevar]]>, which assigns the value of <index> from <array> to <[[gamevar]]>.
Defines a gamearray. Values in the array are accessed as <name>[<index>] with any command that reads from [[gamevar]]s. Values can only be set with [[setarray]].
 
See [[setarray]].

Revision as of 16:40, 11 May 2008

gamearray <name> <size>

Defines a gamearray. Values in the array are accessed as <name>[<index>] with any command that reads from gamevars. Values can only be set with setarray.