Info: Camera above the player
#1

how to set the camera pos above the player ?

i tried this.. but don't work

PHP код:
SetPlayerCameraPos(playeridfloat[0], float[1], float[2] + 10);
SetPlayerCameraLookAt(playeridfloat[0], float[1], float[2]); 
Reply
#2

If you're talking about birds-eye view, you would have to reset the camera under OnPlayerUpdate. I don't see any other way. What happens when you run that code?
Reply
#3

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
If you're talking about birds-eye view, you would have to reset the camera under OnPlayerUpdate. I don't see any other way. What happens when you run that code?
the code work but

don't set the camera above the player...
Reply
#4

You haven't set a value on the Function:
For example this, I entered values, and it will work!

pawn Код:
SetPlayerCameraPos(playerid,9.6063,1715.1882,22.6113);
SetPlayerCameraLookAt(playerid,11.9577,1716.7191,22.6222);
Reply
#5

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
You haven't set a value on the Function:
For example this, I entered values, and it will work!

pawn Код:
SetPlayerCameraPos(playerid,9.6063,1715.1882,22.6113);
SetPlayerCameraLookAt(playerid,11.9577,1716.7191,22.6222);
no, my code is correct, i have solved.. thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)