# how do i make the "apply damage" in this function actually work, does it have to do with the code for my healthbars?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489>\
**Category:** Blueprint\
**Tags:** health, damage, fighting-game, apply-damage, health-bar, unreal-engine, Blueprint, question\
**Created:** [October 31, 2025, 12:31pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489 "2025-10-31T12:31:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guigoso2006](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guigoso2006](https://forums.unrealengine.com/u/Guigoso2006)\
**Post date:** [October 31, 2025, 12:31pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489/1 "2025-10-31T12:31:19Z")

</div>

![lucien_char 31_10_2025 09_20_11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/a/5/8a5264468cf7f889b7015d4a9aefb3232355228a.png)code for healthbars

 ![lucien_char 31_10_2025 09_25_45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/4/25498bf05eee9a7c2ed09793be8b0107cccbb672.png)code excerpt that is supposed to activate the function

 ![lucien_char 31_10_2025 09_24_35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/3/0436ac61f0f6b12737bad0895a8260d835fb0e20.png)the function

(observation: every other instance of apply damage works on the player instance (who has the variable “damage amount b”) but not the “eat” function)

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [October 31, 2025, 1:02pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489/2 "2025-10-31T13:02:56Z")

</div>

Hi There,

I am not sure what is going on really over the scripts but I can clearly see the apply damage has no target in Eat() which should fail already. There is self maybe pass atleast instigator to it, it sometimes fail also damage number is negative that should cause it to heal morelikely afaik however really depends on how you setup things which atleast I cannot read from your scripts.

Also think you would have by default less bugs and less time spend on debugging and reading code by applying some simple principles which seems you need some help around with not creating blueprints from hell in future.

https://www.youtube.com/embed/4D5UfHZx_qU?feature=oembed&wmode=opaque&start=174

---

<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:** [October 31, 2025, 1:43pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489/3 "2025-10-31T13:43:38Z")

</div>

My favorite is

> **[Blueprint Assist](https://www.fab.com/listings/14d7ba87-a587-406d-9369-ed75fa0a55ed)**
>
> FeaturesFor a full overview of features, please have a look at this page on the wiki which contains animated gifs for each feature of the pluginNode formatting: When a user places a node on the graph, the node formatting algorithm is run. So asyou...

---

<div class="post-metadata">

**Author:** ![Guigoso2006](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guigoso2006](https://forums.unrealengine.com/u/Guigoso2006)\
**Post date:** [October 31, 2025, 1:49pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489/4 "2025-10-31T13:49:42Z")

</div>

still doesn’t work. i might scrap this healing move and reuse the animation for the taunt button. any other possible solutions?

 ![lucien_char 31_10_2025 10_49_10](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/0/a60852c5b91ead66bc914913966cb1c7ee21f36c.png)

---

<div class="post-metadata">

**Author:** ![Guigoso2006](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guigoso2006](https://forums.unrealengine.com/u/Guigoso2006)\
**Post date:** [October 31, 2025, 2:11pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489/5 "2025-10-31T14:11:46Z")

</div>

i chose to completely scrap the move until i find a solution (i’m unfortunately an amateur dev who got his certificate in a course that only taught me how to develop hack and slash/fps and not fighting games)

---

<div class="post-metadata">

**Author:** ![Guigoso2006](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guigoso2006](https://forums.unrealengine.com/u/Guigoso2006)\
**Post date:** [October 31, 2025, 3:09pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-apply-damage-in-this-function-actually-work-does-it-have-to-do-with-the-code-for-my-healthbars/2670489/6 "2025-10-31T15:09:16Z")

</div>

I FIXED MY CODE AND NOW IT WORKS IT WORKS IT WORKS
