- Joined
- Mar 15, 2012
- Messages
- 2,885
So there's the known function angle between points, but is there any way to turn it into angle between GetUnitX/Y and another units X/Y?
Edit: Solved it myself, my bad.
[jass=]
function AngleBetweenCoordinates takes real x1, real y1, real x2, real y2 returns real
return Atan2(y2 - y1, x2 - x1)
endfunction[/code]
However if anyone can translate this into a GUI + Custom Script method you can ultra-solve this help thread. =) I'd appreciate it as well.
Edit: Solved it myself, my bad.
[jass=]
function AngleBetweenCoordinates takes real x1, real y1, real x2, real y2 returns real
return Atan2(y2 - y1, x2 - x1)
endfunction[/code]
However if anyone can translate this into a GUI + Custom Script method you can ultra-solve this help thread. =) I'd appreciate it as well.
Last edited: