Modvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo 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 remainder) of <gamevar>/<value>.




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

Revision as of 18:39, 26 July 2010

modvar <gamevar> <value>

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