I have a gun that I want to add range effectiveness to. Basically, the longer the distance to the target(measured in studs) the lower the damage. I am not the best at math, so I need someone to help me out here.

The variables I am working with is Range and Raw Damage. Feel free to suggest/add other variables to make this a bit easier and understandable. I can provide you more information if you need. Thanks.

3 comments

0

The easiest way would be Raw Damage-Range or then dampen it such as Raw Damage-Range/3 for example

0

You would use the magnitude which is the distance between the two points

0

I see, thanks.