Hey is there function that would make compass to coordinates. (Tried using RotatePoint) But failed.
Thanks in advanced.
~Home
Hey is there function that would make compass to coordinates. (Tried using RotatePoint) But failed.
Thanks in advanced.
~Home
It's called MMToMs or something like that![]()

I don't really understand what you want. So you have a point on the mini map and you want to rotate the compass so that the point is in the center of main screen?
Heysus made a function that does that, I will dig it up.
EDIT: Here it is: http://villavu.com/forum/showthread.php?t=53872
Hopes that's what you want.
Assuming your compass is already at north all you would have to do is use the simple maths
Degrees(ArcTan2(Y1- Y2, X1- Y2)) + 90;
i.e.
MakeCompass(Round(Degrees(ArcTan2(MMCY - P.Y, MMCX - P.X)) + 90));
I guess if you're not already at 0d (north) then just
MakeCompass(Round(Degrees(ArcTan2(MMCY - P.Y, MMCX - P.X)) + 90 + rs_GetCompassDegrees));
Last edited by Wanted; 03-16-2010 at 06:47 PM.
I made this a few months ago.
http://villavu.com/forum/showthread.php?t=53872
There are currently 1 users browsing this thread. (0 members and 1 guests)