Hey again guys
!
This may seem simple, but I just cannot figure it out, so I hoped any experienced could help me out
Okay, a unit is supposed to gain more / less life regeneration and movement speed depending on distance from enemy units. Be aware of that I would like at max distance (2000 range), the movement speed would be at top (30 % increase) and life regen. at 1.00 per. second. At 150 range (closest distance), this has switched and the life regen is now at top with 10.00 per. second and movement at -30 %.
For instance, a footman is 2000 range away from any enemy unit (not allied), it will then receive a buff according to the distance, with x amount of life regen and movement speed. If it moves down to 1500, this buff will change according to this distance.
Any help appreciated, thanks
~Razorwind~

This may seem simple, but I just cannot figure it out, so I hoped any experienced could help me out
Okay, a unit is supposed to gain more / less life regeneration and movement speed depending on distance from enemy units. Be aware of that I would like at max distance (2000 range), the movement speed would be at top (30 % increase) and life regen. at 1.00 per. second. At 150 range (closest distance), this has switched and the life regen is now at top with 10.00 per. second and movement at -30 %.
For instance, a footman is 2000 range away from any enemy unit (not allied), it will then receive a buff according to the distance, with x amount of life regen and movement speed. If it moves down to 1500, this buff will change according to this distance.
Any help appreciated, thanks
~Razorwind~