⇐ Index
PlaySoundLoop(<-soundName <-volume <-unit)
Plays a sound loop and attaches to the specified unit. The volume ranges from 0 to 1.
The sound will play based on the location of the unit (if the unit moves the sound moves with it).
The loop will autoterminate if the unit is destroyed.
See Sounds for a list of sounds.
Note: Subsequent calls of PlaySoundLoop on the same unit will have no affect. First use StopSoundLoop then apply the new sound/volume.
PlaySoundLoop("SoundName" 1 self)
The “Pulsing Ambience” sound is used on the main menu. Playback volume of this sound is NOT regulated by the volume on the PlaySoundLoop API, but by the volume setting for “Menu Music Volume” in the game settings. The sound volume is not affected by whether the sound is muted or unmuted on the main menu, only by the volume level.
⇐ Index