StopInstance - Sound
Revision as of 11:46, 3 December 2015 by imported>Plplecuyer
Member of: Sound Script
Stop playback of a sound instance.
Syntax[edit | edit source]
Function StopInstance(int aiPlaybackInstance) native global
Parameters[edit | edit source]
- aiPlaybackInstance: The instance ID of the sound to stop.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
;This example is from an objectReference script
int instanceID = myLoopingSFX.play(self) ; play myLoopingSFX sound from my self
Wait(10.0) ; wait while the sound is looping
Sound.StopInstance(instanceID) ; stop the sound after looping for 10 seconds