StopInstance - Sound
Member of: Sound Script
Stop playback of a sound instance.
SyntaxEdit
Function StopInstance(int aiPlaybackInstance) native global
ParametersEdit
- aiPlaybackInstance: The instance ID of the sound to stop.
Return ValueEdit
None.
ExamplesEdit
;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