SA-MP Forums Archive
SetCameraPos not loading - 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: SetCameraPos not loading (/showthread.php?tid=557714)



SetCameraPos not loading - Jigsaw123 - 14.01.2015

Hello, Basically I've been trying to make a server... And.. I used:
SetPlayerCameraPos(playerid, 1351.9838, 467.8283, 20.0923);
SetPlayerCameraLookAt(playerid, 1352.9872, 467.8386, 20.0721);
That when the player joins the server, and when i tried it out, it was so blurry in the background you could barely see anything.. Help?


Re: SetCameraPos not loading - RedFusion - 14.01.2015

Is your player spawned or not when the camera is set? Try the opposite and see what happens.


Re: SetCameraPos not loading - Jigsaw123 - 14.01.2015

He ain't meant to be spawned because he is registering, like typeing in his password and stuff, and it is meant to point the camera towards those positions.


Re: SetCameraPos not loading - RedFusion - 14.01.2015

It is probably because the area you set the camera at is not streamed in for the player!


Re: SetCameraPos not loading - Jigsaw123 - 14.01.2015

So How do i fix it? D: Doyou know? :P


Re: SetCameraPos not loading - xVIP3Rx - 14.01.2015

Try other coords, if it worked then the problem must be in your coords


Re: SetCameraPos not loading - RedFusion - 14.01.2015

Try setting the player behind the camera and see what happens.

I don't think this happens during spectate mode, so you might want to try that aswell.
pawn Код:
TogglePlayerSpectating(playerid, true);
// camera stuff here
take a look at this:
https://sampforum.blast.hk/showthread.php?pid=2362690#pid2362690