SA-MP Forums Archive
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=552922)



Facing Angle - X|Dragon|X - 27.12.2014

On my script, i made that on the register screen you can see your player in the background, but the problem is, the player is facing the wrong way from the SetPlayerCameraPos, how do i make him look the other way?, the SetPlayerFacingAngle Isn't working, it does nothing.


Re: Facing Angle - Mic_H - 27.12.2014

Show me the AddPlayerClass part


Re: Facing Angle - X|Dragon|X - 27.12.2014

Code:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerCameraPos(playerid, 2022.85,2241.80,2105.57);
	SetPlayerCameraLookAt(playerid, 2021.14,2245.13,2104.95);
	SetPlayerPos(playerid, 2021.14,2245.13,2103.95);
	SetPlayerFacingAngle(playerid, 27.8246);
	SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, playerid+0);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SITTING);
	TogglePlayerControllable(playerid, false);
	if(PlayerStat[playerid][Logged] == 1 && PlayerStat[playerid][FullyRegistered] == 1) return LoadPlayerData(playerid);
	return 1;
}
And if you can also help me with the animation, i cant get him to do the animation while the player is registering i want the character to be sitting down


Re: Facing Angle - X|Dragon|X - 27.12.2014

BUUMP