SA-MP Forums Archive
[0.3.7] Actor Set Angle. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: [0.3.7] Actor Set Angle. (/showthread.php?tid=579048)



[0.3.7] Actor Set Angle. - Gasman - 24.06.2015

Hello,
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;
}



Re: [0.3.7] Actor Set Angle. - ea8de1 - 24.06.2015

Code:
SetActorFacingAngle(Actor,float(random(360)));
No?