I will post a little picture first
Now to explain. In the above picture, you can see that the ATPA has been sorted as [0] being in the right hand corner, [1] being left hand side, [2] being left of the middle, and [3] being the furnace.
If you can't guess. It is searching for the furnace.
Here is my ATPA code.
SCAR Code:TDPA := SplitTPA(TPA, 15);
SortATPAFrom(TDPA, Point(MMCX, MMCY));
DebugATPABounds(TDPA, '');
So maybe I am using this wrong, but to my understanding, it should be sorting the ATPA points from the center, so that [0] will be the furnace (closest to center) and will eliminate the mouse moving to the other points before it.
My only assumption about it is that I am using it wrong, so if someone could tell me the right way to use it, I would appreciate it.








Reply With Quote




