Gil, would it be possible to damage an enemy with a projectile depending on the distance? For example, I am shooting a gun at an enemy. At point blank, I want the damage to be 100%. If I shoot it at a further distance, the damage will be lower depending on my distance until it reaches a certain distance where the damage will be at its lowest.
Use the Distance step (Position Steps) in the formula. This step lets you use the distance between user and target as a value.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!