Play Sound In A Loop
What it does
Starts an audio clip that repeats until it is stopped. Use it for ambience such as water, machinery, rain, or an active-area soundtrack.
Setup
- Select the item that should emit the looping audio.
- Add Play Sound In A Loop to the task state that starts the ambience.
- Provide the audio URL and configure the options below.
- Add Stop Sound to the task state or trigger that should end it.
Settings
| Setting | What it means |
|---|---|
| URL | Hosted audio file to repeat. |
| Distance | Listening range from the item. A value below zero makes the sound global. |
| Preload | Downloads the clip when the room loads so it is ready sooner. |
| Play On Start | Starts the loop when the task begins. |
| Volume | Playback volume. |
| Random Pitch Variance | Adds small pitch variation when playback starts. |
| Delay Before Starting | Waits before the loop begins. |
| Fade In Duration | Gradually raises the volume when the loop begins. |
| Preview Sound | Plays a local preview while you configure the effect. |
Tiny example
Entering a cave trigger starts a looping wind sound. Exiting the cave runs Stop Sound with the same audio URL and a short fade.
Test and troubleshoot
- Use the exact same URL in Stop Sound when only one loop should stop.
- Leave the Stop Sound URL blank only when you intentionally want to stop every sound from that item.
- Keep the distance positive for location-based ambience; use a negative value for a room-wide soundtrack.
- Test entering and leaving the area more than once to confirm the loop does not continue unexpectedly.
