Ifrnd: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
This command must only be used in synchronised code or you will cause desyncs. for display code use [[displayrand]] instead. | This command must only be used in synchronised code or you will cause desyncs. for display code use [[displayrand]] instead. | ||
[[Category:Duke3D 1.3/1.5 commands]] |
Revision as of 00:04, 24 September 2005
ifrnd <value> { <do somethin!> }
An if condition stating the probability of it 'doin somethin!' in this case.
NOTE: It's out of 256 as max, so 'ifrnd 256 = 100%', and 'ifrnd 128 = 50%'
This command must only be used in synchronised code or you will cause desyncs. for display code use displayrand instead.