User Tools

Site Tools


4rpl:commands:playsoundloop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:playsoundloop [2021/02/10 15:01] Karsten754rpl:commands:playsoundloop [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 9: Line 9:
 The sound will play based on the location of the unit (if the unit moves the sound moves with it). 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.\\ The loop will autoterminate if the unit is destroyed.\\
-See [[PlaySound]] for a list of sounds.+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. 
  
 ===== Examples ===== ===== Examples =====
Line 16: Line 17:
 PlaySoundLoop("SoundName" 1 self) PlaySoundLoop("SoundName" 1 self)
 </code> </code>
 +
 +==== Usage note ====
 +
 +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. 
 +
  
 === See Also === === See Also ===
  
   * [[StopSoundLoop]]   * [[StopSoundLoop]]
 +  * There is a [[cw4:4rpl_tools#looping_sound_player|sound sampler script]] in the [[cw4:4rpl_tools|Tools]] section of the wiki. 
 +  * 
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/playsoundloop.1612969271.txt.gz · Last modified: 2025/02/14 14:56 (external edit)