Download

Random Sound in game

So i placed a loop able sound in my game for my main menu and have a bunch more i want to use. If I place the other ones in the world, is there a way to make it so it randomly picks one and plays it?

Id make an array of sounds store the variable where you play the sounds drag out of the array and do a get, then select the random int in range node something like that outta do it I guess

You could directly do that in your sound cue -> just add a random node and connect several sounds to it. Now everytime when you play the sound, it will play a different one
(But I’m not sure if it will also choose a random one when you loop it -> just test it :))