SA-MP Forums Archive
[PROBLEM] Getting camera on the ground. - 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: [PROBLEM] Getting camera on the ground. (/showthread.php?tid=529422)



[PROBLEM] Getting camera on the ground. - E_Meec - 02.08.2014

Hi guys, I've got a problem with SetPlayerCamera and SetPlayerCameraLookAt and I don't know how to fix this:

Camera on the ground (I take the picture with Flymode):



Real camera (I get the position by GetPlayerCameraPos):



I need a function for example: SetPlayerCameraOnGround(playerid, X, Y, Z)

How I create it?


Re: [PROBLEM] Getting camera on the ground. - Threshold - 02.08.2014

Do you want the camera to be ON the ground, or LOOKING AT the ground?


Re: [PROBLEM] Getting camera on the ground. - E_Meec - 02.08.2014

Looking at the ground.


Re: [PROBLEM] Getting camera on the ground. - Threshold - 02.08.2014

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerCameraPos(playerid, x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z - 2.0);



Re: [PROBLEM] Getting camera on the ground. - E_Meec - 02.08.2014

Thank you. + REP