[PROBLEM] Getting camera on the ground.

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?

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

Looking at the ground.

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

Thank you. + REP

Forum Jump:

Users browsing this thread: 1 Guest(s)