Camera modes
#1

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!
Reply
#2

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
Reply
#3

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...
Reply
#4

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?
Reply
#5

Problem solved, lock.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)