PlayAndWait - Sound
From Creation Kit
Member of: Sound Script
Plays the sound from the location of the specified object reference, and waits for the sound to finish playing. This function is latent.
bool Function PlayAndWait(ObjectReference akSource) native
- akSource: The ObjectReference to play the sound from.
True if the sound was successfully played.
if gunFire.PlayAndWait(fighterJet) Debug.Trace("Gunfire has finished playing!") else Debug.Trace("Gunfire failed to play") endIf