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

**URL:** <https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [September 28, 2023, 11:01am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282 "2023-09-28T11:01:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaxAxter5](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baxaxter5/32/600597_2.png) [@BaxAxter5](https://forums.unrealengine.com/u/BaxAxter5)\
**Post date:** [September 28, 2023, 11:01am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/1 "2023-09-28T11:01:18Z")

</div>

![Screenshot (339)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/e/fce6cf7f5b47c432e770d701926034b3abc239e0.png)  
 ![Screenshot (341)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/e/3eed80c2b112aa45873723cd9a3dda7cfe88aae4.png)  
 ![Screenshot (340)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/3/3035fea3e99684656e1529b2ceeddd22891d0ef6.png)

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.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 28, 2023, 11:10am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/2 "2023-09-28T11:10:52Z")

</div>

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/c/a5c78c381f1b9b344ba19e5e914f843b90634b6c.png)

---

<div class="post-metadata">

**Author:** ![BaxAxter5](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baxaxter5/32/600597_2.png) [@BaxAxter5](https://forums.unrealengine.com/u/BaxAxter5)\
**Post date:** [September 28, 2023, 11:17am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/3 "2023-09-28T11:17:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 28, 2023, 11:24am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/4 "2023-09-28T11:24:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BaxAxter5](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baxaxter5/32/600597_2.png) [@BaxAxter5](https://forums.unrealengine.com/u/BaxAxter5)\
**Post date:** [September 28, 2023, 11:33am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/5 "2023-09-28T11:33:01Z")

</div>

![Screenshot (342)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/5/615352a46ffb2a0367dfc94b8bec7ebb25419d9c.png)  
 ![Screenshot (343)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/1/aa1b677398bcedcec445b9cb09e959f5625f26e4.png)

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

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 28, 2023, 11:36am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/6 "2023-09-28T11:36:31Z")

</div>

I’ve just tried it, it works.

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

---

<div class="post-metadata">

**Author:** ![BaxAxter5](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baxaxter5/32/600597_2.png) [@BaxAxter5](https://forums.unrealengine.com/u/BaxAxter5)\
**Post date:** [September 28, 2023, 11:38am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/7 "2023-09-28T11:38:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 28, 2023, 11:39am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/8 "2023-09-28T11:39:44Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BaxAxter5](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baxaxter5/32/600597_2.png) [@BaxAxter5](https://forums.unrealengine.com/u/BaxAxter5)\
**Post date:** [September 28, 2023, 11:49am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/9 "2023-09-28T11:49:22Z")

</div>

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.

 ![Screenshot (344)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/7/677cfdf0f8b1fce1299c7b00b070dc0ebc0ab916.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 28, 2023, 11:49am UTC](https://forums.unrealengine.com/t/how-to-adjust-the-volume-of-a-sound-cue-using-a-trigger-box/1315282/10 "2023-10-28T11:49:36Z")

</div>

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