Always snap to grid

UE3:SoundNodeRandom (UT3)

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

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

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 *