Setarray: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''setarray''' <[[gamearray]]>[<index>] <[[gamevar]]>
'''setarray''' <[[gamearray]]>[<index>] <[[gamevar]] | constant>


Sets the value of <index> in <[[gamearray]]> to <[[gamevar]]>. 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:EDuke32 specific commands]]
[[Category:Gamevar manipulation]]
[[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.