# Make Sound Play as I Press Button

**URL:** <https://forums.unrealengine.com/t/make-sound-play-as-i-press-button/2684829>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [December 13, 2025, 9:40pm UTC](https://forums.unrealengine.com/t/make-sound-play-as-i-press-button/2684829 "2025-12-13T21:40:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Impudent\_Swine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/impudent_swine/32/1121349_2.png) [@Impudent\_Swine](https://forums.unrealengine.com/u/Impudent_Swine)\
**Post date:** [December 13, 2025, 9:40pm UTC](https://forums.unrealengine.com/t/make-sound-play-as-i-press-button/2684829/1 "2025-12-13T21:40:27Z")

</div>

Is there a node or function to play a sound as the mouse button is held down on a button to trigger it, where it will stop playing as soon as the mouse button is released, but will resume the sound where it left off when it is pressed again?

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [December 14, 2025, 10:06am UTC](https://forums.unrealengine.com/t/make-sound-play-as-i-press-button/2684829/2 "2025-12-14T10:06:59Z")

</div>

You could do something like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/a/a4a86f3801cadab97a78a0db25e7ef4b7dd80b49.jpeg)

---

<div class="post-metadata">

**Author:** ![Impudent\_Swine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/impudent_swine/32/1121349_2.png) [@Impudent\_Swine](https://forums.unrealengine.com/u/Impudent_Swine)\
**Post date:** [December 14, 2025, 3:14pm UTC](https://forums.unrealengine.com/t/make-sound-play-as-i-press-button/2684829/3 "2025-12-14T15:14:56Z")

</div>

That works a lot better than I would have done it! I was going to segment a song into tiny portions and then make a sound cue with a concatenator that would just run through the list as the button is pressed, which would have been a pain. Thank you for this infinitely better method!

---

<div class="post-metadata">

**Author:** ![BRGEzedeRocco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgezederocco/32/1216890_2.png) [@BRGEzedeRocco](https://forums.unrealengine.com/u/BRGEzedeRocco)\
**Post date:** [December 14, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/make-sound-play-as-i-press-button/2684829/4 "2025-12-14T16:08:50Z")

</div>

Hello @Impudent_Swine ,  
I’m leaving you another alternative that could work for you  
First, you create an **IA\_InteractSound** and add it to the **IMC** you are using, so you can assign it to an interaction key.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/a/dda7074250ffed3ff181f91f26bedcd9e0d0a5ae.png)

Then, you create a **Blueprint** for the button and add the sound using an **Audio Component**. In that Blueprint, you implement the logic needed to determine the audio’s duration.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/0/660e72742e20343fd0082a177e5ee0ab6a18eee5.png)

After that, you disable **Auto Activate** on the Audio Component.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/d/aede188fdd9f7ce4c686411773d50f39b10d6818.png)  
If you want the audio to repeat, open the sound asset and enable **Looping**.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/c/1fc81449d4e3c2af6cb28b54be54c4a59f29a0fd.png)

Finally, in your **BP\_Character** , you perform a **Line Trace** to define an interaction distance. This distance is handled using the **Get Forward Vector** multiplied by a float value (in this case, 100).

If the **Hit Actor** from the Line Trace is the previously created **BP\_Sound** , the sound will play. When the input is released, the last playback time is saved, and when interacting again, the audio continues playing from that point.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/3/6d398d3a4b665be6022b828a7c45daf371ec4578.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/e/9aeae1d867d52ef95f1b4da5125fbdc5b4c91c5a.jpeg)  
(quick note ,the Print String is only for testing, you can delete it)

Hope it helps!
