Skin Rotation
#1

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?
Reply
#2

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

Thanks! This worked.

Reply
#4

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

Remeber this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)