05.05.2015, 16:55
(
Последний раз редактировалось DarkPower2; 05.05.2015 в 18:49.
)
PHP код:
GetActorFacingAngle(i,A);
SetActorFacingAngle(i,A+90);
SetActorFacingAngle - change angle, BUT SKIN NOT SPINNING. WHY
GetActorFacingAngle(i,A);
SetActorFacingAngle(i,A+90);
new Float:A;
new Float:A;
for(new i = 0; i < count; i++)
{
GetActorFacingAngle(i,A);
SetActorFacingAngle(i,A+90);
}
new Float:A;
GetActorFacingAngle(0,A);
SetActorFacingAngle(0,A+90);
new Float:A;
GetPlayerFacingAngle(playerid,A);
for(new i = 0; i < count; i++)
{
SetActorFacingAngle(i,A+90);
}
new Float:A+90;
GetPlayerFacingAngle(playerid,A);
for(new i = 0; i < count; i++)
{
SetActorFacingAngle(i,A);
}
new Float:A;
SetPlayerFacingAngle(playerid,180);
for(new i = 0; i < count; i++)
{
GetActorFacingAngle(i,A);
SetActorFacingAngle(i,180);
}
PHP код:
Or you could do this PHP код:
|
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
new Float:A;
GetPlayerFacingAngle(playerid,A);
for(new i = 0; i < count; i++)
{
SetActorFacingAngle(i,A);
}