How to adjust the volume of a sound cue using a trigger box?



In UE5.2 I have a sound cue playing music tracks on random, from event play in my game mode.
I want to turn this music down at certain times in the game, triggered by a trigger box.
There are nodes in Unreal like ‘adjust volume’ which seem like they would be the easiest most obvious thing in the world, but I just can’t get it to work and many people seem to have the same issue.
I am trying to set the volume from the trigger box blueprint, using a reference to the audio component. But nothing happens, the music keeps playing and is not turned down. Print strings and breakpoints show the execution line is firing.
Thanks.

1 Like

You need to spawn the sound, rather than just playing it. Then you have a reference to control

But the sound is already playing from event begin play. This just spawns a second instance of it so there are now two sound cues playing.

When you spawn it on begin play, you need to keep a reference. Later, you can control the sound using that reference.


Like this? If so, no, still does nothing. Music just keeps playing.

I’ve just tried it, it works.

You have it set there to take 5 seconds to get to zero. Is that right?

Yes, but it doesn’t turn down or stop. Just won’t work for me, I’ve tried so many combinations and nodes. Keeps playing.

So you start it playing in the game mode. How do you get the reference from the game move to the actor with the collision volume?

1 Like

Thank you. Your question made me realise I was not referencing the game mode correctly.
I thought I could just copy and paste the game music Ref variable, but I did this instead and it works.
Greatly appreciated.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.