Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE3:SoundNodeRandom (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> SoundNode >> SoundNodeRandom
Package: 
Engine
This class in other games:
UT3

Selects sounds from a random set

Properties[edit]

Property group 'SoundNodeRandom'[edit]

bRandomizeWithoutReplacement[edit]

Type: bool

Determines whether or not this SoundNodeRandom should randomize with or without replacement.

WithoutReplacement means that only nodes left will be valid for selection. So with that, you are guarenteed to have only one occurrence of the sound played until all of the other sounds in the set have all been played.

WithReplacement means that a node will be chosen and then placed back into the set. So one could play the same sound over and over if the probabilities don't go your way :-)

Default value: True

Weights[edit]

Type: array<float>

Modifiers: editfixedsize


Internal variables[edit]

HasBeenUsed[edit]

Type: array<bool>

Modifiers: transient

Internal state of which sounds have been played. This is only used at runtime to keep track of which sounds have been played

NumRandomUsed[edit]

Type: int

Modifiers: transient

Counter var so we don't have to count all of the used sounds each time we choose a sound *