Damage actor by velocity

Hey everyone! I’m trying to attempt to recreate something like the gravity gun from Half life. I’m specifically looking for a way to inflict damage on an actor that is scaled by velocity. If I were to shoot an object very fast, it would deal more damage than one that was moving slow. I’ve been looking for a tutorial everywhere and I cant find anything. If anyone knows of a tutorial or knows how to achieve this, could you help me out?
Thanks!

Hey @Hollini! Welcome to the forums!

So do you know how to inflict damage in a regular method and are just trying to find out how to convert velocity to damage?

To do that, you’d use “Get Velocity” with self as target and if velocity is greater than a certain amount, take velocity and divide it by however much it needs to be to make it a reasonable number, and pass that float into “Damage actor.” :slight_smile:

That seems simple enough! I think the one thing i’m still stumped on is what event to use. I’ve tried event hit and also creating an event overlap by creating a small collision component around the object, but I cant get either to work. Do you have a better idea?

Hey @Hollini! Sorry for the late response.

Do you think you can elaborate on the issues you’re having? Screenshots etc. would be a great help, both of those things should work fine with the right setup. Chances are it’s just a small detail being missed. :slight_smile: