Randvar: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
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. | 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 | 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. |
Revision as of 14:12, 1 February 2005
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.