This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:playsoundloop [2021/01/08 16:01] – external edit 127.0.0.1 | 4rpl:commands:playsoundloop [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
Plays a sound loop and attaches to the specified unit. The volume ranges from 0 to 1. | 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 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 [[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/ | ||
===== Examples ===== | ===== Examples ===== | ||
Line 14: | Line 17: | ||
PlaySoundLoop(" | PlaySoundLoop(" | ||
</ | </ | ||
+ | |||
+ | ==== Usage note ==== | ||
+ | |||
+ | The " | ||
+ | |||
+ | |||
+ | === See Also === | ||
+ | |||
+ | * [[StopSoundLoop]] | ||
+ | * There is a [[cw4: | ||
+ | * | ||
< | < | ||