how can you make a physics damage system

something I’ve been interested in was a way to damage players with physics
for example if an object was thrown at a player, based on how fast that object if moving relative to the player it would damage the player based on that speed
I tried wording that as best I can, if don’t get it let me know :stuck_out_tongue:

here is something like what I’m going for

if I remember correctly, UE4 doesn’t replicate physics, so I’m not sure how this can be done

This is the key node you are looking for:

You can use the event Hit, or Begin Overlap to trigger when an object is touching another, and so you can use blueprint interface to deal damage to the characters.

You can pass the resultant velocity as a parameter to calculate how much damage you will apply.

Tip: Use Vector length node when calculating the objects velocity.

164b378930106b5d94a93d452056241d8c143191.jpeg