ReversePlayerDirection
#1

Is it possible to reverse a players facing angle, so they are facing opposite direction? Like if they're facing N then they'd face S.
Reply
#2

pawn Код:
stock ReversePlayerDirection(playerid)
{
new Float:a;
GetPlayerFacingAngle(playerid,a);
if(a < 180) SetPlayerFacingAngle(playerid,a+180);
else SetPlayerFacingAngle(playerid,a-180);
}
Reply
#3

Thank you good sir.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)