SA-MP Forums Archive
SetPlayerCameraPos and LookAt - 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: SetPlayerCameraPos and LookAt (/showthread.php?tid=275388)



SetPlayerCameraPos and LookAt - Davz*|*Criss - 09.08.2011

hey guys!

It really takes me time to set player's correct lookat camera pos and camera pos.

So i grant you to do it for me please.

here is pic.

I want like this player class.




thanks


Re: SetPlayerCameraPos and LookAt - RyDeR` - 09.08.2011

Give me the player position and the camera position and I will generate the angle for you.


Re: SetPlayerCameraPos and LookAt - Davz*|*Criss - 09.08.2011

SetPlayerPos(playerid,101,367.6491,2502.5344,16.48 44);
SetPlayerFacingAngle(playerid, 306.8883);
SetPlayerCameraPos(playerid,369.8332,2504.3203,16. 4844); SetPlayerCameraLookAt(playerid,371.3728,2505.5784, 16.4844);

I dont know the angle of lookat camera.

thanks


Re: SetPlayerCameraPos and LookAt - RyDeR` - 09.08.2011

Not sure if we can set the players head to look at a point but if you want the exact angle for players facing it's: 309.272308.