SA-MP Forums Archive
CameraPos/CameraLookAt +REP - 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: CameraPos/CameraLookAt +REP (/showthread.php?tid=566310)



CameraPos/CameraLookAt +REP - StarPeens - 05.03.2015

pawn Код:
SetPlayerPos(playerid, 1212.777,-34.528,1002.454);
    SetPlayerInterior(playerid, 3);
    SetPlayerCameraPos(playerid, 1212.777,-34.528,1002.454);
    SetPlayerCameraLookAt(playerid, 1209.935,-34.981,1001.484);
you could tell me where is the error? the camera correctly to turn this is where the skins, but I do not see them, + Rep


Re: CameraPos/CameraLookAt +REP - Primard - 05.03.2015

Please put what they said of the error: compiling errors.


Re: CameraPos/CameraLookAt +REP - De4dpOol - 05.03.2015

pawn Код:
SetPlayerCameraPos(playerid, 1212.777,-34.528,1002.454);
You are setting the camera to the player's position. I think its the reason you are unable to see skins. Try a different position and use SetPlayerCameraLookAt(playerid, 1212.777,-34.528,1002.454); to look at your skin. PS is the camera is correctly positioned but the skins are not visible?


Re: CameraPos/CameraLookAt +REP - Ritzy2K - 05.03.2015

Deadpool got it first.. the main issue is...ur cameralookat and ur playerpos are different make em same


Re: CameraPos/CameraLookAt +REP - StarPeens - 05.03.2015

Quote:
Originally Posted by De4dpOol
Посмотреть сообщение
pawn Код:
SetPlayerCameraPos(playerid, 1212.777,-34.528,1002.454);
You are setting the camera to the player's position. I think its the reason you are unable to see skins. Try a different position and use SetPlayerCameraLookAt(playerid, 1212.777,-34.528,1002.454); to look at your skin. PS is the camera is correctly positioned but the skins are not visible?



AW: CameraPos/CameraLookAt +REP - Kaliber - 05.03.2015

You must do sth like this:

Код:
SetPlayerPos(playerid, 1212.777,-34.528,1002.454);
SetPlayerInterior(playerid, 3);
SetPlayerCameraPos(playerid, 1209.935,-34.981,1001.484);
SetPlayerCameraLookAt(playerid, 1212.777,-34.528,1002.454);
Greekz


Re: AW: CameraPos/CameraLookAt +REP - StarPeens - 05.03.2015

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
You must do sth like this:

Код:
SetPlayerPos(playerid, 1212.777,-34.528,1002.454);
SetPlayerInterior(playerid, 3);
SetPlayerCameraPos(playerid, 1209.935,-34.981,1001.484);
SetPlayerCameraLookAt(playerid, 1212.777,-34.528,1002.454);
Greekz
now my skin is flying over the site, lol


AW: Re: AW: CameraPos/CameraLookAt +REP - Kaliber - 05.03.2015

Quote:
Originally Posted by StarPeens
Посмотреть сообщение
now my skin is flying over the site, lol
Sorry..i cant check these coords, i am just guessing xD

Код:
SetPlayerPos(playerid, 1212.777,-34.528,1002.454);
SetPlayerInterior(playerid, 3);
SetPlayerCameraPos(playerid, 1212.777,-38.528,1006.454);
SetPlayerCameraLookAt(playerid, 1212.777,-34.528,1002.454);
What happens if you do this?


Re: CameraPos/CameraLookAt +REP - wahyumahadir - 05.03.2015

Try it

Код:
		SetPlayerInterior(playerid,3);
		SetPlayerPos(playerid,-2673.8381,1399.7424,918.3516);
		SetPlayerFacingAngle(playerid,181.0);
    	SetPlayerCameraPos(playerid,-2673.2776,1394.3859,918.3516);
		SetPlayerCameraLookAt(playerid,-2673.8381,1399.7424,918.3516);