StopSound

Stops a sound effect.

  • StopSound() stops all sounds that were played without specifying an entity or place.
  • StopSound(SoundEffect) stops the sound effect that was played by PlaySound(SoundEffect).
  • StopSound(SoundEffect, EntityOrPlace) stops the sound effect that was played by PlaySound(SoundEffect, EntityOrPlace).
  • StopSound(EntityOrPlace) stops all sound effects previously played by PlaySound(SoundEffect, EntityOrPlace).

Arguments
Argument Sound Effect Name
Type Sound Effect
Default Null
Description Name of the sound effect to stop
Argument Name of Entity or Place
Type Entity or Place
Default Null
Description Name of the entity or place to stop the sound effect for

Examples

StopSound()

StopSound(City)

StopSound(Laugh, Tom)


See Also