SetPlayerCameraPos Help - 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: SetPlayerCameraPos Help (
/showthread.php?tid=228224)
SetPlayerCameraPos Help -
YungGee - 19.02.2011
Im having trouble with SetPlayerCameraPos i have this
pawn Код:
SetPlayerCameraLookAt(playerid, -926.8456,-101.9948,58.1380);
SetPlayerCameraPos(playerid, -926.8456 + (5 * floatsin(-240.9189, degrees)), -101.9948 + (5 * floatcos(-240.9189, degrees)), 58.1380);
And the (240.9189, degrees)) is the facing angle from /save, It works fine in OnPlayerRequestClass but its not working with my tutorial after OnPlayerSpawn
It just shows a random pos :S i think its behind them can anyone show me how its done?
EDIT:
And how to show the objects/3dText etc when its setting the camera positions?