SA-MP Forums Archive
Camera LookAt 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)
+--- Thread: Camera LookAt Angle (/showthread.php?tid=561161)



Camera LookAt Angle - Mic_H - 01.02.2015

I searched it and dint get any result, so here I am asking it again, like others.
Is there anyway to get the PlayerCameraLookAtANGLE?
I am not talking about his facing angle, but I wanna get where his camera is looking at[ANGLE].
Lets say, a player's Facing angle is 0.0, and he presses the MMB to look back, his Camera Angle is 180.0...
Or, a Player's Facing angle is 0.0 and he he turns with Side Arrow but his camera is still looking forward, Cam angle = 0.0 and FacingAngle = 90.0 or 270.0..
-Thank you for your time love.


Re: Camera LookAt Angle - Gammix - 01.02.2015

https://sampwiki.blast.hk/wiki/GetPlayerCameraPos

https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector