Damage reduction system depending on the player's weapon problem

I’m trying to make a damage reduction system depending on the player’s weapon, ran into the problem that I can’t change the default damage. I came up with the idea of restoring health to the person who took damage. Is it possible to somehow call the function before calling the elimination of the player as it can be done in UE, because otherwise if the standard damage is greater than the health of the enemy player, he dies and from the restoration of health makes no sense

What you could try to do is have a damage amplifier device that is set to amplify the damage of the player negatively based on the weapon they’re holding (Using conditional button).

Eg You can use the damage powerup device set it to be 0.50 and then when you give this to a player the will effectively do 50% less damage

The fort_character.OnDamaged event is indeed called a few frames before OnEliminated, that way you can even prevent lethal damage

wait what no way, thats actually a really cool information to know that should be mentioned somewhere

UEFN is all about finding the tricks :smiley:

As far as I can tell from the logs, this is not the case. If a player has less than or equal to 0 hit points, the Eliminate function is called first in the game (inside Fortnite via C++ i think). If you look at what is called first through the Print function using Subcribe on the OnDamaged() event, it appears that OnDamage is called first. It may be true what you say, but I can’t get into those couple frames. Probably because I’m throwing my custom events and already processing them, so that’s why I can’t get into them

Just heal someone inside the OnDamage event and you’ll see

Thanks for the info, I’ll think about how to implement this in my game :grin: