Displayrandvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
Unlike [[randvar]], this command can be used in unsynchronized code.
Unlike [[randvar]], this command can be used in unsynchronized code.


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

Revision as of 12:09, 21 April 2008

displayrandvar <gamevar> <value>

This function generates a random number from 0 to <value> and assigns it to <gamevar>.

Unlike randvar, this command can be used in unsynchronized code.