# why Any Damage Event not counting the Float Variable value in unreal engine 5

**URL:** <https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635>\
**Category:** Programming & Scripting\
**Tags:** debug, bug, unreal-engine, issue, Blueprint, question\
**Created:** [June 10, 2025, 11:11pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635 "2025-06-10T23:11:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CoreRageS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corerages/32/917673_2.png) [@CoreRageS](https://forums.unrealengine.com/u/CoreRageS)\
**Post date:** [June 10, 2025, 11:11pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/1 "2025-06-10T23:11:08Z")

</div>

The Actor Float Variable is set to 100 and with one actor Overlap it went down to -99  
i don’t see what is causing this problem so i’m calling for Help

 ![Screenshot 2025-06-10 180851](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/9/f19667d7e71f7487572d9cf93c5dec445ffa6ae7.jpeg)

---

<div class="post-metadata">

**Author:** ![Kemichar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kemichar/32/1069671_2.png) [@Kemichar](https://forums.unrealengine.com/u/Kemichar)\
**Post date:** [June 10, 2025, 11:13pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/2 "2025-06-10T23:13:39Z")

</div>

You inverted the inputs to the “-” node. The first input is the value you’re subtracting from. The second input is the value you’re subtracting.

Swap the Damage and Current Health wires.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/7/b67154fc9ad8b6f1c24290c5fad9335d1d7a7bc5.jpeg)

---

<div class="post-metadata">

**Author:** ![CoreRageS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corerages/32/917673_2.png) [@CoreRageS](https://forums.unrealengine.com/u/CoreRageS)\
**Post date:** [June 10, 2025, 11:17pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/3 "2025-06-10T23:17:02Z")

</div>

What?..let me see

---

<div class="post-metadata">

**Author:** ![CoreRageS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corerages/32/917673_2.png) [@CoreRageS](https://forums.unrealengine.com/u/CoreRageS)\
**Post date:** [June 10, 2025, 11:23pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/4 "2025-06-10T23:23:34Z")

</div>

So, i swap the Variables and with one overlap it goes BOOM!.. that’s that suppose to happen, it still ain’t working

---

<div class="post-metadata">

**Author:** ![CoreRageS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corerages/32/917673_2.png) [@CoreRageS](https://forums.unrealengine.com/u/CoreRageS)\
**Post date:** [June 10, 2025, 11:25pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/5 "2025-06-10T23:25:17Z")

</div>

idk why it’s doing that now, because the same code worked with the character that i’m using… 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Kemichar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kemichar/32/1069671_2.png) [@Kemichar](https://forums.unrealengine.com/u/Kemichar)\
**Post date:** [June 10, 2025, 11:27pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/6 "2025-06-10T23:27:22Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/7/237e6b41cbef6184629c4c8405deb2d82bfbb945.png)

Your True and False wires here are inverted, swap them.

---

<div class="post-metadata">

**Author:** ![CoreRageS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/corerages/32/917673_2.png) [@CoreRageS](https://forums.unrealengine.com/u/CoreRageS)\
**Post date:** [June 10, 2025, 11:39pm UTC](https://forums.unrealengine.com/t/why-any-damage-event-not-counting-the-float-variable-value-in-unreal-engine-5/2550635/7 "2025-06-10T23:39:42Z")

</div>

Hey it’s Working now, looks like i’m gonna have to really try to remember the two ways of the (Any Damage Event)  
Again Thank you my fellow GigaChad!
