Not work SetActorFacingAngle
#8

Quote:
Originally Posted by DarkPower2
Посмотреть сообщение
PHP код:
new Float:A;
SetPlayerFacingAngle(playerid,180);
for(new 
0counti++)
{
    
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
Reply


Messages In This Thread
Not work SetActorFacingAngle - by DarkPower2 - 05.05.2015, 16:55
Re: Not work SetActorFacingAngle - by ihatetn931 - 05.05.2015, 17:23
Re: Not work SetActorFacingAngle - by DarkPower2 - 05.05.2015, 17:32
Re: Not work SetActorFacingAngle - by DarkPower2 - 05.05.2015, 17:35
Re: Not work SetActorFacingAngle - by ihatetn931 - 05.05.2015, 17:40
Re: Not work SetActorFacingAngle - by DarkPower2 - 05.05.2015, 17:42
Re: Not work SetActorFacingAngle - by DarkPower2 - 05.05.2015, 17:45
Re: Not work SetActorFacingAngle - by ihatetn931 - 05.05.2015, 17:46
Re: Not work SetActorFacingAngle - by DarkPower2 - 05.05.2015, 17:48
Re: Not work SetActorFacingAngle - by ihatetn931 - 05.05.2015, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)