[PROBLEM] Getting camera on the ground.
#1

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

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

Looking at the ground.
Reply
#4

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

Thank you. + REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)