Quote:
Originally Posted by DarkPower2
PHP код:
new Float:A;
SetPlayerFacingAngle(playerid,180);
for(new i = 0; i < count; i++)
{
GetActorFacingAngle(i,A);
SetActorFacingAngle(i,180);
}
not work
|
In that code A is not doing anything but storing the actor facing angle which you're not using
PHP код:
new Float:A; //this is so we can store the angle we need
GetPlayerFacingAngle(i,A); //A now has the angle of the player
SetActorFacingAngle(i,A+180);//A has the player facing angle, we wanna add 180 degrees to that
By adding a +90 to the Angle, it's adding 90 degress to that number that is stored in the A