SA-MP Forums Archive
OnPlayerRequestClass camera angle - 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: OnPlayerRequestClass camera angle (/showthread.php?tid=377903)



OnPlayerRequestClass camera angle - davve95 - 15.09.2012

Hi!


I forgot to learn camera angles when I learned Pawno..


But now when I need it I get wrong angle..

I think you will understand when u look up my code..

I want the camera to be front of the house.

pawn Код:
SetPlayerPos(playerid,1966.2806,1936.0837,127.5821);
SetPlayerCameraPos(playerid,2034.5992,1781.9849,160.6893);
SetPlayerCameraLookAt(playerid,2034.5992,1781.9849,160.6893);
Thanks alot!..


Re: OnPlayerRequestClass camera angle - Roko_foko - 15.09.2012

Quote:

SetPlayerCameraLookAt(playerid,2034.5992,1781.9849 ,160.6893);
SetPlayerCameraPos(playerid,2034.5992,1781.9849,16 0.6893);

You want camera to look at their position or at Player position?
this is correct line (you want that camera is looking at player's position!):
pawn Код:
SetPlayerCameraLookAt(playerid,1966.2806,1936.0837,127.5821);



Re: OnPlayerRequestClass camera angle - davve95 - 16.09.2012

Quote:
Originally Posted by Roko_foko
Посмотреть сообщение
You want camera to look at their position or at Player position?
this is correct line (you want that camera is looking at player's position!):
pawn Код:
SetPlayerCameraLookAt(playerid,1966.2806,1936.0837,127.5821);
I don't know exactily, but thanks alot I gonna try it!.


Re: OnPlayerRequestClass camera angle - newbienoob - 16.09.2012

Just use JernejL's map editor. Click View tab and move your camera. Then click Copy Camera LookAt() Coords and paste it in your script.


Re: OnPlayerRequestClass camera angle - davve95 - 16.09.2012

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Just use JernejL's map editor. Click View tab and move your camera. Then click Copy Camera LookAt() Coords and paste it in your script.
Okay nice idea! Thanks alot!..


Edit: I can't see skins on classSelection :S...