Shiftvarr: Difference between revisions

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


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 halve the value of the gamevar. If you shift it right with 2, then it will halve the number, and then halve it again.
[[Category:EDuke32 specific commands]]
[[Category:Gamevar manipulation]]

Latest revision as of 13:56, 12 April 2013

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 halve the value of the gamevar. If you shift it right with 2, then it will halve the number, and then halve it again.