Setarray: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
As with my gamearray explanation, this is only intended to be a stop-gap measure.
 
No edit summary
 
(6 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>.
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.