Setarray: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
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:Gamearray manipulation]]
[[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.