SA-MP Forums Archive
Skin Rotation - 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: Skin Rotation (/showthread.php?tid=141531)



Skin Rotation - Ironboy500 - 13.04.2010

Hello!
I am setting my new skin selection and got one problem. I have set everything right and ok. But my skin got wrong rotation in-game. Look at picture



Here is my script and my coordinates

Код:
public SetupPlayerForClassSelection(playerid)
{
	SetPlayerPos(playerid, 1615.1621,-1744.6470,27.7999);
	SetPlayerInterior(playerid, 0);
	SetPlayerFacingAngle(playerid, 6.8458);
	SetPlayerCameraPos(playerid, 1615.9957,-1748.2146,27.7493);
	SetPlayerCameraLookAt(playerid, 1615.1621,-1744.6470,27.7999);
	SetPlayerFacingAngle(playerid,0.0);
}
How could I set right rotation without going in-game and setting camera again?


Re: Skin Rotation - aircombat - 13.04.2010

try this :
Код:
SetPlayerFacingAngle(playerid,270.0);



Re: Skin Rotation - Ironboy500 - 14.04.2010

Thanks! This worked.




Re: Skin Rotation - Thrarod - 14.04.2010

SetPlayerFacingAngle(playerid,0.0); = North
SetPlayerFacingAngle(playerid,90.0); = East
SetPlayerFacingAngle(playerid,180.0); = South
SetPlayerFacingAngle(playerid,270.0); = West

Remeber this