facing angle - 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: facing angle (
/showthread.php?tid=364843)
facing angle -
P<3TS - 01.08.2012
hello, i made a teleport cmd but if he type that he will spawn in different rotation. He wont stand properly (not the camera from back, it become showing from side)
How to make it stand properly (showing camera from back)?
Re: facing angle -
Ranama - 01.08.2012
SetPlayerFacingAnge(playerid, Float:angle); //angle = the angle you want the player to face
Re: facing angle -
P<3TS - 01.08.2012
i did but not coming properly
this is the coords
AddPlayerClass(276,289.7737,1484.4243,1080.2578,29 6.4013,0,0,0,0,0,0);
interior 15
Re: facing angle -
Ranama - 01.08.2012
Or sorry, I just got my mind over a function called SetCameraBehindPlayer(payerid);, this will place the camera behind the player, but if you want the player to face a angle you need to use SetPlayerAngle();
https://sampwiki.blast.hk/wiki/Function:...yerFacingAngle
https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer