24.06.2015, 02:04
Hello,
This is bug of Actor in 0.3.7
SetActorFacingAngle not work.
My code:
This is bug of Actor in 0.3.7
SetActorFacingAngle not work.
My code:
pawn Code:
new Actor;
CMD:createactor(playerid,params[])
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
Actor= CreateActor(170,x+1,y+1,z,0.0);
return 1;
}
CMD:posactortest(playerid,params[])//work
{
SetActorPos(Actor,0.0,0.0,3);
return 1;
}
CMD:angleactortest(playerid,params[])//Not Work
{
SetActorFacingAngle(Actor,random(360));
return 1;
}