SA-MP Forums Archive
Info: Camera above the player - 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: Info: Camera above the player (/showthread.php?tid=370608)



Info: Camera above the player - NewbieScripter - 20.08.2012

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]); 



Re: Info: Camera above the player - ReneG - 20.08.2012

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?


Re: Info: Camera above the player - NewbieScripter - 20.08.2012

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...


Re: Info: Camera above the player - ThePhenix - 20.08.2012

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);



Re: Info: Camera above the player - NewbieScripter - 20.08.2012

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