SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 24/06/2015, 02:04 AM   #1
Gasman
Little Clucker
 
Gasman's Avatar
 
Join Date: May 2015
Location: VietNam
Posts: 33
Reputation: 73
Default [0.3.7] Actor Set Angle.

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;
}
Gasman is offline   Reply With Quote
Old 24/06/2015, 11:18 AM   #2
ea8de1
Big Clucker
 
Join Date: Oct 2013
Location: Russia
Posts: 88
Reputation: 19
Default Re: [0.3.7] Actor Set Angle.

Code:
SetActorFacingAngle(Actor,float(random(360)));
No?
ea8de1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Actor streamer Om3n Scripting Help 2 16/05/2015 03:54 PM
Actor Sync Bug dominik523 Bug Reports 9 03/05/2015 05:51 PM
Why can not actor walk? LikeNPC Scripting Help 4 02/05/2015 07:06 PM
Actor is not showing? J0sh... Scripting Help 11 01/05/2015 04:41 PM
Actor's facing angle problems Gammix Scripting Help 4 28/04/2015 08:34 AM


All times are GMT. The time now is 07:57 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.