I've created a custom ability. It's basically just makes a unit jump to a specific location(changing height and position of unit over 1 second). I've got a set of problems though, which i was hoping someone smart might be able to help me figure out.
My problem is that the maximum range for the ability is 600. But at times the user might want to use it at a shorter range. To figure out the range the user used the ability at i've used:
Variable - Set UnitStartLocation = (Position of (Triggering unit))
Variable - Set AbilityTargetPoint = (Triggering ability target point)
Variable - Set DistanceBetweenStartAndFinish = (Distance between AbilityTargetPoint and UnitStartLocation)
This works just fine, but if the uses the ability on a point more than 600 range away, the position of triggering unit will be the position of the unit when the ability was clicked, not when it actually starts. So if i click at the other end of the map with the ability, it will calculate a giant distance. Any ideas how to work around this?
Hi.
I've created a custom ability. It's basically just makes a unit jump to a specific location(changing height and position of unit over 1 second). I've got a set of problems though, which i was hoping someone smart might be able to help me figure out.
My problem is that the maximum range for the ability is 600. But at times the user might want to use it at a shorter range. To figure out the range the user used the ability at i've used:
Variable - Set UnitStartLocation = (Position of (Triggering unit))
Variable - Set AbilityTargetPoint = (Triggering ability target point)
Variable - Set DistanceBetweenStartAndFinish = (Distance between AbilityTargetPoint and UnitStartLocation)
This works just fine, but if the uses the ability on a point more than 600 range away, the position of triggering unit will be the position of the unit when the ability was clicked, not when it actually starts. So if i click at the other end of the map with the ability, it will calculate a giant distance. Any ideas how to work around this?