StopSound
Ends a sound now on every screen.
OnEntitySoundEnd then runs with "stopped".
Syntax
Section titled “Syntax”StopSound(sound)| Parameter | Type | |
|---|---|---|
sound |
number | the sound’s id |
Returns
Section titled “Returns”boolean - false when it was not playing
Example
Section titled “Example”if tavernMusic then StopSound(tavernMusic) tavernMusic = nil endSee also
Section titled “See also”PlayEntitySound · PlaySoundAt · StopEntitySounds · the Sound files group of the index
