Camera - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Camera (
/showthread.php?tid=187024)
Camera -
Typhome - 31.10.2010
Hello.
I need help.
I have at OnPlayerRequestClass:
SetPlayerPos(playerid, 892.2806,-1639.4067,14.9589);
SetPlayerCameraPos(playerid, 891.95, -1651.78, 15.43);
SetPlayerCameraLookAt(playerid, 892.01, -1646.78, 15.31);
If you spawn, then camera still stays and you can walk, just camera isnt following to player.
How do make it follow?
Re: Camera -
Mauzen - 31.10.2010
Use SetCameraBehindPlayer(playerid) in OnPlayerSpawn. But it should work by itself, you may have some other code somewhere, that blocks it.