Background for Fallout 4
Member of the Sound script
boolfunctionPlayAndWait(ObjectReferenceakSource)Native

Description

Wiki Description

Plays the sound from the location of the specified object reference, and waits for the sound to finish playing. This function is latent.

Documentation Comment

Play this sound from the specified source, and wait for it to finish


Caveats


Parameters

ObjectReferenceakSource

CK Wiki Description

The ObjectReference to play the sound from.


Examples

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

Auto-Generated Example

ObjectReference myObjectReference__akSource

bool returnedValue = mySound__toCallFunctionOn.PlayAndWait(myObjectReference__akSource)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.