SA-MP Forums Archive
Player's Facing Angle - 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: Player's Facing Angle (/showthread.php?tid=122438)



Player's Facing Angle - cmg4life - 21.01.2010

Any possible way to find out where the player's camera is looking ? As i understood, GetPlayerFacingAngle, refers to the character, not to the Player's Camera...


Re: Player's Facing Angle - Joe Staff - 21.01.2010

As of right now, no. What can be done, however, is use a plugin to get the value of the player's head rotation. Some time in the 0.2 era of SA-MP the player's head rotation was sent to other players so it can show where that player is looking, perhaps this rotation can be used to determine where the camera is looking (generally)


Re: Player's Facing Angle - bluray - 22.01.2010

are you talking about on player request class, because if you are,
there is a commands called SetPlayerCameraLookAt which directs where the camera looks. But if your not im not really sure, probably use what the other people said.