SA-MP Forums Archive
Issues with camera position - 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: Issues with camera position (/showthread.php?tid=657510)



Issues with camera position - GRiMMREAPER - 09.08.2018

Hey. I've been trying to get the camera to stay at this position (see below) throughout both OnPlayerConnect and after the player spawns, but all my attempts have failed. I also need to disable the class selection dialogs (I know how to do that, but it messes up with the camera position).

pawn Код:
SetPlayerCameraPos(playerid, 1497.0647, -1569.8276, 67.0876);
SetPlayerCameraLookAt(playerid, 1497.0281, -1568.8251, 67.0926);
Any idea how I can accomplish my idea? I've been giving this issue my time lately but I figured it'd make more sense to seek help here.


Re: Issues with camera position - AndreProgrammer - 09.08.2018

You try use TogglePlayerSpectating ?


Re: Issues with camera position - GRiMMREAPER - 09.08.2018

Quote:
Originally Posted by AndreProgrammer
Посмотреть сообщение
You try use TogglePlayerSpectating ?
I did. I'm using that function under OnPlayerRequestClass but that resets the player's camera position to the outskirts of Los Santos.


Re: Issues with camera position - AndreProgrammer - 09.08.2018

I use for camera the function InterpolateCameraPos and works in spectating