# Sound won't stop

**URL:** <https://forums.unrealengine.com/t/sound-wont-stop/1793745>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [April 8, 2024, 10:09am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745 "2024-04-08T10:09:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![judgejames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/judgejames/32/982454_2.png) [@judgejames](https://forums.unrealengine.com/u/judgejames)\
**Post date:** [April 8, 2024, 10:09am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/1 "2024-04-08T10:09:34Z")

</div>

Hi,

I have an array of lights that activate when the player overlaps a box collision which is working well. The only issue is that the SFX for the lights remain active when they should stop, images, blueprints and video below, thanks in advance!

1. Overlap logic  

2. Sound On/Off logic  

3. Error log  

Video demonstration (audio buzzing should have stopped)

Pastebin Blueprint

> **[Sound not stopping posted by anonymous | blueprintUE | PasteBin For Unreal...](https://blueprintue.com/blueprint/3ueyim_2/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 8, 2024, 10:22am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/2 "2024-04-08T10:22:48Z")

</div>

Can you tell how many times this triggers when overlapped?

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

---

<div class="post-metadata">

**Author:** ![judgejames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/judgejames/32/982454_2.png) [@judgejames](https://forums.unrealengine.com/u/judgejames)\
**Post date:** [April 8, 2024, 10:28am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/3 "2024-04-08T10:28:54Z")

</div>

Hi @Everynone , it sounds like twice

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 8, 2024, 10:44am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/4 "2024-04-08T10:44:42Z")

</div>

That’s not good, right? The overlap would then create 2 sounds but only reference the 2nd one. The 1st sound would become orphaned an inaccessible. You could fiddle with the `DoOnce` node but it’d be better to address this issue at the core - what are the chances Marcus has something attached to him that also triggers the overlap?

You could print the display name of the component after the cast:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/c/05c3eb9748dd5c1b195e07eb0f7d5e747f3c7e5d.png)

You’d then know what is the other bit that messes this up. It should be capsule only. Do tell what you find out.

---

<div class="post-metadata">

**Author:** ![judgejames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/judgejames/32/982454_2.png) [@judgejames](https://forums.unrealengine.com/u/judgejames)\
**Post date:** [April 8, 2024, 10:48am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/5 "2024-04-08T10:48:56Z")

</div>

Sorry I’m not sure how to do the print display name

this is the character

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/d/61deb5d6f6766f6f57a0d2e385931eff5ca45651.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 8, 2024, 10:50am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/6 "2024-04-08T10:50:01Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/1/3f15a35c748326ed3c45b963dcc5a37eb7025bc9.png)

`Cast` to Marcus, connect `Other Comp` → `Print`.

---

<div class="post-metadata">

**Author:** ![judgejames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/judgejames/32/982454_2.png) [@judgejames](https://forums.unrealengine.com/u/judgejames)\
**Post date:** [April 8, 2024, 10:52am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/7 "2024-04-08T10:52:04Z")

</div>

This is what I got

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/5/bf58aaaf3c0892304eea172dd26a918690911aab.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/f/05fa3f6e4b5629a84e67bcc34362e2177be6a175.png)

m\_med\_nrw\_body

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/d/57d950cf6ad3e772447b70daa5535370677a1ec9.jpeg)

Flashlight that I have now updated to no collide

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 8, 2024, 10:58am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/8 "2024-04-08T10:58:13Z")

</div>

So it actually triggers 3 times it seems. You’d need to ensure the `Flashlight` and the character `Mesh` cannot interact with the `Box` - I _assume_ the cylinder is the capsule collider. We’d need to look into the collision settings of those elements.

But perhaps this is enough when set on the **Box** :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/8/5b8ef167c173371f009077c3ffd87f42756e0564.png)

Only the character’s capsule’s type should be set to `Pawn`:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/2/a925d0124a8d445463517bc7c819b931aa5c3c59.png)

This way, the Box can only overlap with objects types flagged as Pawn; and only the capsule is of Pawn type.

---

<div class="post-metadata">

**Author:** ![judgejames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/judgejames/32/982454_2.png) [@judgejames](https://forums.unrealengine.com/u/judgejames)\
**Post date:** [April 8, 2024, 11:05am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/9 "2024-04-08T11:05:56Z")

</div>

It now works! thank you so much. I’ve attempted to make it fade out before it stops but it still just stops

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/8/bd8de13d337aec0d7b9771c59ca6a60372881ab1.png)

still get these errors too

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

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 8, 2024, 11:17am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/10 "2024-04-08T11:17:20Z")

</div>

Not sure how it’s supposed to work. Perhaps you could elaborate? Sounds auto destroy by default:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/6/766cbd7e9f6d104c247a42fe33076c803c6f7a22.png)

Chances are the errors come from the fact that the sound no longer exists (it has played once and self-destruct) yet we attempt to `Stop` it. Perhaps there is no need to reference or Stop anything. Spawn Sound → Fade. If you want looping sounds, that’s another story…

> I’ve attempted to make it fade out before it stops

`Stop` will not wait for anything, all non-latent nodes execute immediately one after another.

* * *

Yet another, albeit somewhat cumbersome, way is to use a validated `Get`:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/b/9cb547dfce8f1a2e7dc65826b14c1108aa034a8d.png)

Before attempting to access an object that may no longer exist, Stop only if the sound is valid.

---

<div class="post-metadata">

**Author:** ![judgejames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/judgejames/32/982454_2.png) [@judgejames](https://forums.unrealengine.com/u/judgejames)\
**Post date:** [April 8, 2024, 11:27am UTC](https://forums.unrealengine.com/t/sound-wont-stop/1793745/11 "2024-04-08T11:27:24Z")

</div>

Validate GET worked a charm, I’m happy to just use that suggestion, thank you very much for your quick replies and solutions as always 🙂 ✅
