# How to make a 2D Sound unplayable after some time

**URL:** <https://forums.unrealengine.com/t/how-to-make-a-2d-sound-unplayable-after-some-time/1150030>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 30, 2023, 8:23pm UTC](https://forums.unrealengine.com/t/how-to-make-a-2d-sound-unplayable-after-some-time/1150030 "2023-04-30T20:23:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThatGuyOnBlue](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thatguyonblue/32/692062_2.png) [@ThatGuyOnBlue](https://forums.unrealengine.com/u/ThatGuyOnBlue)\
**Post date:** [April 30, 2023, 8:23pm UTC](https://forums.unrealengine.com/t/how-to-make-a-2d-sound-unplayable-after-some-time/1150030/1 "2023-04-30T20:23:37Z")

</div>

Hey, i am Developing a Blueprint Open World Game, I created sounds an a gun system, so when you shoot at the dummy, a 2D Sound will play, but it is cursed when you shoot a couple of times and the sound repeats another and another time, even tho the dummy is dead. Here is the example: [2023-04-29 18-44-17](https://streamable.com/zas0vr)

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 1, 2023, 3:25am UTC](https://forums.unrealengine.com/t/how-to-make-a-2d-sound-unplayable-after-some-time/1150030/2 "2023-05-01T03:25:42Z")

</div>

Hey there @ThatGuyOnBlue! Welcome to the community! Does the death sound only play on death? (Funny question I know) If so, you could just make a branch when you’re sending the hit information over, check the “Dead?” boolean, and then if true don’t make the death sound, false then make the death sound.

---

<div class="post-metadata">

**Author:** ![ThatGuyOnBlue](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thatguyonblue/32/692062_2.png) [@ThatGuyOnBlue](https://forums.unrealengine.com/u/ThatGuyOnBlue)\
**Post date:** [May 3, 2023, 12:38am UTC](https://forums.unrealengine.com/t/how-to-make-a-2d-sound-unplayable-after-some-time/1150030/3 "2023-05-03T00:38:23Z")

</div>

Yes, but, do you know how to make a node, when if a sphere traced by channel touches ground, th sound 2d stops? Like a Stop 2D sound node

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 4, 2023, 8:05am UTC](https://forums.unrealengine.com/t/how-to-make-a-2d-sound-unplayable-after-some-time/1150030/4 "2023-05-04T08:05:42Z")

</div>

Ahh then you’d want to take the reference pin from your spawned sound, then use the set active to false and disable it. Example in the thread below!

> [@How do you stop a 2D sound?](https://forums.unrealengine.com/t/how-do-you-stop-a-2d-sound/379534/2):
>
> You first need to keep a reference to the sound that is playing. In other words don’t call “Play 2D Sound” because that doesn’t return a reference. Instead, call Spawn Sound 2D which does return a sound reference. When you have a sound reference you have two options to turn it off/on. By call SetActive and passing in a true/false as the “New Active” parameter or by calling ToggleActive which will activate the sound if it’s already activated or deactivate it if it’s not.
