I have a spell that moves a unit from his position to another position. Its done by trigger. By that time the unit is paused and it plays an animation. If the range from those points is 800 the animation speed is 100% and it is perfect. Now i need somehow to make an "if" so that if the range is 400 than animation speed needs to be 200%, if the range is 200 animation speed is 300% etc.
For example:
range is 343.31
animation speed should be ???
For example:
range is 343.31
animation speed should be ???