Apply Damage Event Not Calling On Take Any Damage (I've tried everything I've found in other similar threads but it still won't work)

Hi all,

I’m working on a basic online shooter using the third person template and my problem is that I just cannot get the “Apply Damage” built in function to do anything.

Originally the Apply Damage function was part of the output of a line trace, however since I couldn’t get that to work I also tried it on a simple overlap of a static mesh and that also doesn’t seem to do anything.

Below is the fun fire blueprint that is called to run a line trace on the server and all clients via a multicast (and also ran locally), with the output of the line trace going in to the Apply Damage node.

In the player I then have the most basic function I could think of on the On Any Damage node.

But no matter what I did, I could not get the Take any Damage node to fire. I checked the collision of the line trace and it’s hitting fine. The post Apply Damage code is working and being seen by all players so the code isn’t failing. The damage is a non-zero number. See the result below.

So after that I tried making a simple cone that would deal damage on overlap and print the damage below.

Again, the print string works so the code isn’t failing, the damage is a fixed number, but the player doesn’t get damaged when walking over it. I’ve checked the collisions and they’re all fine.

Cone Blueprint Apply Damage - Print String

I then opened a brand new, clean demo third person project and tried the most basic thing I could think of, applying damage on left click in the player and damaging the same player, but I still can’t get anything to trigger.

I then tried this same system but using an event on left click to run on server, but still can’t get any output.

I know this is a basic function but I’ve torn my hair out looking at dozens of similar threads and haven’t been able to find any answer. Can anyone help with what I might be doing wrong please?

Thanks
Cal

I see your “OnTakeAnyDamage_Event” is a custom node, there should be a node that is built in called something like “Event AnyDamage”. and that should be put in your character. Right now I don’t see anything that is actually telling your custom event to do any damage.

1 Like

To be more clear, there is nothing calling that custom node “OnTakeAnyDamage_Event”, Unless you aren’t showing it here. If you think that “Apply Damage” node will automatically know to fire your “Custom Event” it will not unless you put in extra work. It is not Necessary however with the node I gave you “Apply Damage” will automatically call that event, or at least its supposed to.

Hey @The_Stream_Box

To add on just a bit more to what @OORTIZ explained above, you can find the AnyDamage event in the function overrides as shown here:

UnrealEditor_og7RQU061H

Do you have any trouble getting the damage to work outside of a replicated situation?

2 Likes

Thank you so much Oortiz and Quetzalcodename for your help. Really appreciate this.

1 Like