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

code for healthbars

code excerpt that is supposed to activate the function

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)

1 Like

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.

2 Likes

My favorite is

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

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)

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

2 Likes