PlayAndWait - Sound

From the CreationKit Wiki
Jump to navigation Jump to search

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.

Syntax[edit | edit source]

bool Function PlayAndWait(ObjectReference akSource) native

Parameters[edit | edit source]

Return Value[edit | edit source]

True if the sound was successfully played.

Examples[edit | edit source]

if gunFire.PlayAndWait(fighterJet)
    Debug.Trace("Gunfire has finished playing!")
else
    Debug.Trace("Gunfire failed to play")
endIf

See Also[edit | edit source]