Setarray: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
setarray <array>[<index>] <gamevar>
'''setarray''' <[[gamearray]]>[<index>] <[[gamevar]] | constant>


Sets <gamevar> to the value of <index> in <array>. This is the only way to modify an array.
Sets the value of <index> in <[[gamearray]]> to <[[gamevar]]> or the provided constant value. This is the only way to modify a [[gamearray]] without overwriting it completely.
 
[[Category:EDuke32 specific commands]]
[[Category:Gamearray manipulation]]

Latest revision as of 05:33, 11 February 2020

setarray <gamearray>[<index>] <gamevar | constant>

Sets the value of <index> in <gamearray> to <gamevar> or the provided constant value. This is the only way to modify a gamearray without overwriting it completely.