# why are my enemy's dying in one hit 

**URL:** <https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [September 28, 2025, 9:28pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707 "2025-09-28T21:28:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoganPaddled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoganPaddled](https://forums.unrealengine.com/u/LoganPaddled)\
**Post date:** [September 28, 2025, 9:28pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/1 "2025-09-28T21:28:41Z")

</div>

![Screenshot 2025-09-28 151745](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/9/579b4feb1210e10539645f00e1ebaf1239f753a1.png)

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [September 28, 2025, 9:58pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/2 "2025-09-28T21:58:26Z")

</div>

Could be that not a single pulse is hitting the logic, so it is subtracting more then it should. Try testing with a DoOnce node and see if it changes.

---

<div class="post-metadata">

**Author:** ![LoganPaddled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoganPaddled](https://forums.unrealengine.com/u/LoganPaddled)\
**Post date:** [September 28, 2025, 10:23pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/3 "2025-09-28T22:23:51Z")

</div>

okay i can try and were do i put the do once 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:** [September 28, 2025, 10:25pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/4 "2025-09-28T22:25:11Z")

</div>

Hey there @LoganPaddled! I think there are a couple issues with the script here so the answer to your original question is that you are setting your “Max Health” to 0 then checking if it’s 0 to decide if it’s to be destroyed. So it will always be destroyed since you’re setting the value to 0 when you take damage.

That said, I’ll go over everything wrong (assuming you actually wanted to use CurrentHealth) with the script for learning purposes.

You’re using the `MaxHealth` as a `CurrentHealth` in the `TakeDamage` function. You should be using `CurrentHealth` for almost everything, unless you’re attempting to make a creature reduce the actual maximum health of the player instead of the actual current health.

You were incorrectly subtracting the `MaximumHealth` from the Damage value, and then also not hooking it up to your value.

Lastly you checked the `MaxHealth` again (that you had set to 0) to see if it was 0 before destroying the actor. Which would always be 0 in this case.

Here’s a corrected way to handle this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/9/12956266b521a601114168a4401846b72a5822fa.png)

Don’t forget to set your default value for `MaxHealth` in the variable defaults itself.

---

<div class="post-metadata">

**Author:** ![LoganPaddled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoganPaddled](https://forums.unrealengine.com/u/LoganPaddled)\
**Post date:** [September 28, 2025, 10:33pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/5 "2025-09-28T22:33:17Z")

</div>

@SupportiveEntity i tried what you suggested they are still dying in one hit tho anything else i can try

 ![Screenshot 2025-09-28 163109](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/c/87ce9922f80330baa741803ff77978dff794a0fa.png)

---

<div class="post-metadata">

**Author:** ![LoganPaddled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoganPaddled](https://forums.unrealengine.com/u/LoganPaddled)\
**Post date:** [September 28, 2025, 10:43pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/6 "2025-09-28T22:43:04Z")

</div>

oops i was missing a connection in my last photo it works now thank you so much

---

<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:** [September 28, 2025, 11:08pm UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/7 "2025-09-28T23:08:34Z")

</div>

No problem! One way to avoid logic errors like this early on when you’re learning is to step through each node like you would a line of code. This helps catch mistakes like using the `MaxHealth` variable, the subtracting in reverse, and the disconnected nodes all at once. Let me know if you need any more help!

---

<div class="post-metadata">

**Author:** ![LoganPaddled](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LoganPaddled](https://forums.unrealengine.com/u/LoganPaddled)\
**Post date:** [September 29, 2025, 4:28am UTC](https://forums.unrealengine.com/t/why-are-my-enemys-dying-in-one-hit/2660707/8 "2025-09-29T04:28:45Z")

</div>

okay sounds good and have a good rest of your day
