SA-MP Forums Archive
Camera modes - 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 modes (/showthread.php?tid=603404)



Camera modes - vannesenn - 22.03.2016

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!


Re: Camera modes - jlalt - 22.03.2016

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


Re: Camera modes - vannesenn - 22.03.2016

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...


Re: Camera modes - Virtual1ty - 22.03.2016

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?


Re: Camera modes - vannesenn - 23.03.2016

Problem solved, lock.