Randvarvar: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
Redirected page to Randvar
 
Line 1: Line 1:
'''randvarvar''' <gamevar1> <gamevar2>
#REDIRECT [[randvar]]
 
This function generates a random number from 0 to <gamevar2> and assigns it to <gamevar1>.
 
This command should not be used in unsynchronized code or it will desynchronize multiplayer games.  See the list of [[unsynchronized events]] for a full list.
 
In prior releases of DOS EDuke, randvarvar contained a flaw that would desynchronize multiplayer regardless of where the command was used.  The bug has since been corrected for post-1.0 releases of EDuke32.


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

Latest revision as of 18:31, 24 February 2011

Redirect to: