Gamearray

From EDukeWiki
Revision as of 12:23, 4 May 2009 by One (talk | contribs)
Jump to navigation Jump to search

gamearray <name> <size>

A gamearray is a CON version of the array data type common in programming languages. 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. However, 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. Values can only be set with setarray.