Modvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
'''modvar''' <gamevar> <value>
'''modvar''' <gamevar> <value>


This command sets <gamevar> to <gamevar>%<value>. It's a math operation which calculates a modulus(aka reminder) of <gamevar>/<value>.
This command sets <gamevar> to <gamevar>%<value>. It's a math operation which calculates a modulus (aka reminder) of <gamevar>/<value>.




[[Category:EDuke commands]]
[[Category:EDuke commands]]
[[Category:Gamevar manipulation]]
[[Category:Gamevar manipulation]]

Revision as of 11:09, 24 September 2009

modvar <gamevar> <value>

This command sets <gamevar> to <gamevar>%<value>. It's a math operation which calculates a modulus (aka reminder) of <gamevar>/<value>.