How to create a box trigger that can swap between the same song on 2 different files at the correct time stamp?

TahoeTheSoldier
Mon, 23 Nov 2020 22:14:41 +0000
Audio

I have 2 files for 15 different songs that are meant to play one or the other depending on if the player is within a certain area of the game’s map. I want to create a box trigger that, when it detects a player in the trigger, will play the file of the song meant for when they are inside the area and when the player leaves the trigger it will play the other file from the same point (each pair of files is the same length). I also want it to play the songs in a random order so that if one song ends, it will pick another one from random, just like the Random sound cue node. So far I only have this overlap loop which checks for a player actor and will change a boolean if it detects the player’s proxy, and I have no clue where to go from there.

6 posts - 1 participant