Shiftvarl: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
Fox (talk | contribs)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
shiftvarl <[[gamevar]]> <number>
'''shiftvarl''' <[[gamevar]]> <number>


Shifts the value of <[[gamevar]]> <number> bits to the left.  See [[shiftvarr]].
Shifts the value of <[[gamevar]]> <number> bits to the left.  See [[shiftvarr]].
If the gamevar is shifted left with 1, then it will double the value of the gamevar. If you shift it left with 2, then it will double the number, and then double it again.
[[Category:EDuke32 specific commands]]
[[Category:Gamevar manipulation]]

Latest revision as of 14:56, 12 April 2013

shiftvarl <gamevar> <number>

Shifts the value of <gamevar> <number> bits to the left. See shiftvarr.

If the gamevar is shifted left with 1, then it will double the value of the gamevar. If you shift it left with 2, then it will double the number, and then double it again.