SA-MP Forums Archive
GPS Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GPS Help (/showthread.php?tid=202988)



GPS Help - Sascha - 25.12.2010

Hi,
I'm creating a GPS System for my server with a little panel that shows the Distance and the "Heading" to the destination.

The distance works fine, but I have no clue how to make the "heading".

The heading should be shown like: ^ < > V
My problem is now simply how to find out in which angle to the destination the player's angle is.


Re: GPS Help - Mean - 25.12.2010

GetPlayerFacingAngle should do the work.


Re: GPS Help - Sascha - 25.12.2010

my problem is not to get the player's facing angle...
my problem is to get the angle between the player and the point...


so the difference between the angle the player has and he should have to look to the point.


Re: GPS Help - Mean - 25.12.2010

Don't really get you, you should just set a checkpoint, to the location, and make the radius BIG, so you just follow the little red dot on map, instead of screwing with angle.


Re: GPS Help - Sascha - 25.12.2010

well that's what I don't want...