Ifrnd

From EDukeWiki
Jump to: navigation, search

ifrnd <value> { do something } else { do something else }

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
Buy Duke Nukem 3D from GOG.com!