Originally Posted by SinusPi
That's a total red herring - string distance is the difference between two strings, like "tortoise" and "turquoise" would have like 3 differences.
|
Olol...
thanks x)
***
If an edge of the sector is the center, you could use a trigo functions.
Originally Posted by Sharlikran
I need an equation to see if the target is A, which is outside the circle, or B which is inside the circle, and C which is the max distance.
|
Like i understood you, you want to check if A,B,C are in or out range.
And other thing i just got in mind : if you know a A position, which isnt a NPC and disabling the reticleover way, you may try to create a metatable of a Unit, to get a virtual npc with the approriate coords.
But imnt sure if that's possible, because i started to learn metatable today. x)