What this function does is allow you to give it any "casting" unit, and a point(even a position of a unit), and an animation to be played for the "casting" unit, and it will simulate a leaping motion on the "casting" unit from its initial position to the position of the target, while playing the given animation.
This isn't a tutorial in the strictest of sense, but since this is completely trigger based I felt a heavily documented example would serve a lot more useful then just a lot of pictures with explanation.
I know it's some time since the last post (106 days) ^^ but since I stumped over this topic, others might as well. So to make a perfect half-circle as zenx1 says, use the form here:
where middleHeight is the height you want the unit to have at the top-point. If you want that perfect half-circle, middleHeight should be the distance between startPoint and endPoint devided by two.
and distance% is how far the unit has already traveled according to the start-distance between the start point and end-point.
You just update this value as you move the unit from the start-point towards the end-point. The only value that should be modified is distance%, middleHeight is just a constant.
EDIT: Apparently the editor have decided to use American math-values, what a shame.. For this form, just replace PI by 180