The Any Damage event is not called when the player takes damage.

Hi,
I’m trying to set up a very basic damage system. I’ve followed multiple tutorials and post showing how to make one but mine will not work.

Above is the enemy code. The enemy just follows the player and when it reaches them it applies damage. I’ve use the tool that lets you see the code run and this all runs as it should (as far as I can tell)

Above is the player code. As I mentioned this code does not run. It worked fine when I had the starting event set to a keyboard input, so I know it has something to do with Apply Damage and Any Damage.

Any help would be appreciated, because I have no idea what is wrong with it.

Where exactly the code does stop? Add breakpoints (click node than hit f9) to the nodes and then play and observe where is the first node that doesn’t trigger.

The code runs all the way through ApplyDamage (and would run things after, ex. a print sting).

Based off the videos I’ve watched I am under the impression that after running ApplyDamage the Event AnyDamage should run, however it does not.


This is what runs on the enemy when the game is going.

The code for the player looks the same as the original post, nothing happens. None of the lines turn red to show it running.

I feel like I just have some misunderstanding of ApplyDamage and AnyDamage but I don’t know what it is.

Is the Player Ref set? you use GetPlayerCharacter(0) on the move and then Player on the damage

1 Like

I just do it manually, subtracting from whatever health float or int when it is needed.

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