PlayAndWait - Sound

Revision as of 13:54, 11 November 2011 by imported>Scornett (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

SyntaxEdit

bool Function PlayAndWait(ObjectReference akSource) native

ParametersEdit

Return ValueEdit

True if the sound was successfully played.

ExamplesEdit

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

See AlsoEdit