Setarray: Difference between revisions

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


Sets <[[gamevar]]> to the value of <index> in <[[gamearray]]>. This is the only way to modify a [[gamearray]].
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 06: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.