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

Legacy:TriggeredAmbientSound

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 00:47, 24 September 2016 by SeriousBarbie (Talk | contribs) (moved unrelated to discussion page/expanded)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UT :: Actor >> Keypoint (UT) >> TriggeredAmbientSound

Re-plays a sound effect if triggered. If in state TriggerToggled, the sound is turned off if triggered, and turned on, etc.. when triggered again. In the OnWhileTriggered state, the instigator must stay within the trigger's radius for the sound effect to continue playing. bInitiallyOn determines if the sound is playing from the start, and does not apply in the OnWhileTriggered state. A variance can also be set for the timing, so that the replay time can seem more 'real'.

Properties[edit]

TriggeredAmbientSound[edit]

bool bInitiallyOn
Play sound on start up.
sound AmbSound
Sound to play.
float rePlayTime
After this time in seconds has passed, the sound is replayed from the beginning.
float rePlayVariance
rePlayTime varies until ±rePlayVariance seconds randomly.
var() bool bPlayOnceOnly
AmbSound is played once only.

Object > InitialState[edit]

TriggerToggled
Toggles AmbSound on/off.
OnWhileTriggered
Sound is played only as along as the instigator stays within the trigger's radius.
None
Actor does nothing (except if bInitiallyOn==True).

Remarks[edit]

  • If rePlayTime and rePlayVariance are both zero, no sound will be played.
  • One of the Great Mysteries of Unreal I and UT: how to get this to work...? It seems problem #1 is Advanced -> bStatic needs to be set to false. However, there are reports that this still doesn't fix it. Several coders have made their own versions, see Discussion page


Related Topics[edit]