Posts: 607
Threads: 90
Joined: Feb 2011
Reputation:
0
Hi guys,
does anybody Know how to check which camera mode has player? While player is on foot, when he presses key V, he can cycle through three modes. I hope you understand me. Thanks!
Posts: 1,266
Threads: 6
Joined: Oct 2014
There're an function in samp get distance of player camera from a point X Y Z point can be player position ...
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
Posts: 607
Threads: 90
Joined: Feb 2011
Reputation:
0
I'm using that function for camera's look at, but I need wait one second after SetCameraBehindPlayer because cameras' position refresh every one second.
My idea is to take camera's mode and from that I'll take camera's position after SetCameraBehindPlayer.
I found GetPlayerCameraMode but there's only "4 - Follow ped (normal behind player camera)". I'm not sure for what is number 4...
Posts: 734
Threads: 8
Joined: Jun 2009
I believe
GetPlayerCameraPos should return the current camera position irrespective to the looking mode the player has. I still don't grasp what exactly are you trying to do, is it for an AntiCheat?