Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers | Privacy policy

Not logged in
Log in | Help
 

Randvar

From EDukeWiki

randvar <gamevar> <value>

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

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, randvar 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.

Retrieved from "http://sc8-pr-shell1.sourceforge.net../../../r/a/n/Randvar.html"

This page has been accessed 246 times. This page was last modified 15:30, 24 September 2005 by Richard Gobeille. Based on work by Peter Green and EDukeWiki user(s) Usurper. Content is available under SourceForge.


[Main Page]
Main Page
Recent changes
Random page
EDuke32.com

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports