Download

Seeding rand for Audio Cues

When I Start my game I have it play an audio cue with 8 tracks in it hooked into a random node. But in the cooked version it always plays in the same order - is there a way I can seed this rand or should I just make a cue for each and play them via blueprint? Not sure how I would go about telling it to start the next one when the current one ends.

I found that there is an “OnAudioFinished” callback on audio components. Using a switch on Int Param in the sound cue I can easily rand the parameter and reactivate the audio component whenever its done with that track.