Brandon
2012-05-05 03:21:39
I use:
Yet it never writes anything.. yet according to this debug picture.. the point is in the TPA:

Seeing as MSCX, MSCY is the player's position and Red is a Debug colour of Smart_DrawDots(TPA), my character is clearly within the TPA..
Now if I do:
it writes it every single time.. Not only that, if I print the entire TPA, the MSCX, MSCY is also in there.. I don't understand why :S
if (PointInTPA(Point(MSCX, MSCY), TPA)) then
writeln('Point Is In TPA');Yet it never writes anything.. yet according to this debug picture.. the point is in the TPA:

Seeing as MSCX, MSCY is the player's position and Red is a Debug colour of Smart_DrawDots(TPA), my character is clearly within the TPA..
Now if I do:
if (PointInBox(Point(MSCX, MSCY), GetTPABounds(TPA))) then
writeln('Point is within the TPA');it writes it every single time.. Not only that, if I print the entire TPA, the MSCX, MSCY is also in there.. I don't understand why :S