Get the players' rotation. - 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)
+--- Thread: Get the players' rotation. (
/showthread.php?tid=418362)
Get the players' rotation. -
JamesS - 24.02.2013
Well I've been searching around for something like this but I couldn't seem to find it. I want an object to created at a players' position, but also in the "rotation" the player is looking at. Does anyone have a solution for this?
Re: Get the players' rotation. -
jiwan - 24.02.2013
Try using this function
GetPlayerFacingAngle(playerid, Angle);