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.
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