Difference between revisions of "Shiftvarr"

From EDukeWiki
Jump to navigation Jump to search
Line 2: Line 2:


Shifts the value of <[[gamevar]]> <number> bits to the right.  See [[shiftvarl]].
Shifts the value of <[[gamevar]]> <number> bits to the right.  See [[shiftvarl]].
If the gamevar is shifted right with 1, then it will double the value of the gamevar. If you shift it right with 2, then it will double the number, and then double it again.


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Gamevar manipulation]]
[[Category:Gamevar manipulation]]

Revision as of 00:14, 8 May 2011

shiftvarr <gamevar> <number>

Shifts the value of <gamevar> <number> bits to the right. See shiftvarl.

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