# Low Health Audio keeps playing after I've regained health

**URL:** <https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, question\
**Created:** [August 9, 2023, 6:00am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339 "2023-08-09T06:00:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zun0522](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zun0522](https://forums.unrealengine.com/u/Zun0522)\
**Post date:** [August 9, 2023, 6:00am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339/1 "2023-08-09T06:00:31Z")

</div>

Hi. What I want to do here is play an audio when my health is below 30, stops when my health reaches zero OR above 30.  
When I’m below 30, the audio plays as intended, but after I’ve picked up health pickables, the audio won’t stop.  
The audio is looping and I’ve turned off the auto activation.  
Can anyone help me with this? Thanks! 😃

 ![Screenshot (1135)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/b/3cb2367ea66d5b0f2255810017879d00ca37bbd2.png)  
 ![Screenshot (1136)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/a/35a283b5fe6f700a9d58cb90eec240fd14db40f9.png)

---

<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:** [August 9, 2023, 6:07am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339/2 "2023-08-09T06:07:58Z")

</div>

Get rid of this second branch and just plug right in

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

This branch is implied by the first anyway.

When the health goes up, does this ‘low health’ event get called? If not, that’s why the sound doesn’t stop.

---

<div class="post-metadata">

**Author:** ![Zun0522](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zun0522](https://forums.unrealengine.com/u/Zun0522)\
**Post date:** [August 9, 2023, 6:22am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339/3 "2023-08-09T06:22:04Z")

</div>

I got rid of them as you suggested, however the result is the same.

 ![Screenshot (1137)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/8/328b451d77da275ce8dd4edd6a5313f5f3c511bf.png)

But after I call this “Low Health” in the “Add Health” function below, it works perfectly!

 ![Screenshot (1138)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/9/239a812afc8869bee77bd2ea36e342eebb219fe9.png)

But I don’t know how is this happening. Doesn’t “Low Health” event also checks my current health after gaining health? Why do I have to call this event again in “Add Health” function?

---

<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:** [August 9, 2023, 6:23am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339/4 "2023-08-09T06:23:15Z")

</div>

You were only called it on damage. You need to also call it when health is gained.

---

<div class="post-metadata">

**Author:** ![Zun0522](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zun0522](https://forums.unrealengine.com/u/Zun0522)\
**Post date:** [August 9, 2023, 6:30am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339/5 "2023-08-09T06:30:19Z")

</div>

Thanks! You really are a hero \<3

---

<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:** [September 8, 2023, 6:30am UTC](https://forums.unrealengine.com/t/low-health-audio-keeps-playing-after-ive-regained-health/1255339/6 "2023-09-08T06:30:58Z")

</div>

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