Random looping ambiance. Can't find a solution to this.

Can’t find my answer to this problem. I have several background ambiance tracks. I want them to play randomly and indefinitely until specifically stopped. When one random ambiance track is finished playing, another one starts playing.

I have a sound cue with all of the different ambiance tracks going into a random node to pick one at random, then I have a looper node after the random and then from there into the output.

None of my individual sounds are set to be looping.

But only the first sound is chosen (at random) but when it’s done playing and the looper node hits, instead of it choosing another ambiance at random, it just restarts the last one and keeps looping only that one indefinitely. So, how do I get it to re-do the random node to pick up a different ambiance?

-Marc

Hey @Markivider!

Can you show your code logic? Just use screen snips of the nodes, and make sure nothing is weird in the details of the tracks! It’s probably just a checkbox here or a line there. :slight_smile:

This is the sound cue. It’s accessed by a simple Play Sound 2D.

None of the wave files have Looping checked.

But I did create a workaround for it by just removing the looping between the random and the Output and just using this to call it instead:

I figured the first way should have worked just fine, but alas, it did not. This BP version seems to work just fine, though. So I think I’ll just stick with it. Gives me a little more control anyway.

Thanks!

-Marc

1 Like