Bugs in the actor
#1

Hi,

I have a bug in my bitch actors, I set all of the bitches to a dancing animation, though one of them doesn't dance.

pawn Код:
loadActor()
{
    Actor[0] = CreateActor(17, 2485.160888, 2383.956787, -39.371299, 87.6224);
    Actor[1] = CreateActor(17, 2484.959472, 2389.528564, -39.371612, 87.6224);
    Actor[2] = CreateActor(17, 2485.649414, 2371.248046, -39.370513, 87.6224);
    Actor[3] = CreateActor(17, 2485.500976, 2365.485839, -39.371059, 87.6224);
    Actor[4] = CreateActor(178, 243.2550, 1759.2771, 1522.2174, 269.1052 );
    Actor[5] = CreateActor(178, 247.8231, 1759.3799, 1522.2174, 90.5025 );
    Actor[6] = CreateActor(178, 239.1092, 1759.2697, 1522.2174, 88.2949 );
    Actor[7] = CreateActor(178, 251.8587, 1759.2845, 1522.2174, 271.5578 );
    Actor[8] = CreateActor(0, -2666.824218, 1595.264160, 217.273895, 0.0);
    Actor[9] = CreateActor(11, 250.0251, 1747.0573 , 1521.5530 , 357.6631 );
    Create3DTextLabel(""CHAT_RED"REST IN PEACE\n"CHAT_WHITE"Grand Theft Online Cops and Robbers\nWelcome!!", 0xffffff, -2666.824218, 1595.264160, 217.873895, 10.0, 0);

    ApplyActorAnimation(Actor[0], "DANCING", "dnce_M_a" ,  4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[1], "DANCING", "dnce_M_b" ,  4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[2], "DANCING", "dnce_M_c" ,  4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[3], "DANCING", "dnce_M_d" ,  4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[4], "DANCING", "DAN_Loop_A" , 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[5], "DANCING", "DAN_Loop_A" , 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[6], "DANCING", "DAN_Loop_A" , 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[7], "DANCING", "DAN_Loop_A" , 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[8], "DANCING", "DAN_Loop_A" , 4.0, 1, 0, 0, 0, 0);
    ApplyActorAnimation(Actor[9], "DANCING", "dnce_M_b" , 4.0, 1, 0, 0, 0, 0);

    SetActorVirtualWorld(Actor[0], 7);
    SetActorVirtualWorld(Actor[1], 7);
    SetActorVirtualWorld(Actor[2], 7);
    SetActorVirtualWorld(Actor[3], 7);
    SetActorVirtualWorld(Actor[8], 0);
    SetActorVirtualWorld(Actor[4], 31);
    SetActorVirtualWorld(Actor[5], 31);
    SetActorVirtualWorld(Actor[6], 31);
    SetActorVirtualWorld(Actor[7], 31);
    SetActorVirtualWorld(Actor[9], 31);
}
Reply
#2

Not experienced with Actors but I'm sure you need to sync it, idk check the 0.3.7 RC section for help with actors..

Quote:

I set all of the bitches to a dancing animation

I litereally pissed my pants when I seen that xD
Reply
#3

Код:
actors[8];

new Float:server_actorspos[8][4] =
{
    // x,y,z,a here
    return 1;
}

Public OnGameModeInit()
{
    for(new i; i < sizeof(server_actorspos); i++) actors[i] = CreateActor(actorid,x,y,z,a);
    for(new i; i < sizeof(actors); i++) ApplyActorAnimation(actors[i],"DANCING", "dnce_M_a" ,  4.0, 1, 0, 0, 0, 0); 
    return 1;
}
I just give you an example
Reply
#4

Quote:
Originally Posted by justice96
Посмотреть сообщение
Код:
actors[8];

new Float:server_actorspos[8][4] =
{
    // x,y,z,a here
    return 1;
}

Public OnGameModeInit()
{
    for(new i; i < sizeof(server_actorspos); i++) actors[i] = CreateActor(actorid,x,y,z,a);
    for(new i; i < sizeof(actors); i++) ApplyActorAnimation(actors[i],"DANCING", "dnce_M_a" ,  4.0, 1, 0, 0, 0, 0); 
    return 1;
}
I just give you an example
He doesn't need this, he has it already.

@Maro, I bet the bitch that isn't dancing just isn't synced for you. Stream your self out and back in, if the result is the same start debugging.

EDIT: You sparked an idea! This, is for you.
pawn Код:
#define CreateBitch             CreateActor        
#define DestroyBitch            DestroyActor        
                                                   
#define IsBitchStreamedIn       IsActorStreamedIn  
                                                   
#define SetBitchVirtualWorld    SetActorVirtualWorld
#define GetBitchVirtualWorld    GetActorVirtualWorld
                                                   
#define ApplyBitchAnimation     ApplyActorAnimation
#define ClearBitchAnimations    ClearActorAnimations
                                                   
#define SetBitchPos             SetActorPos        
#define GetBitchPos             GetActorPos        
#define SetBitchFacingAngle     SetActorFacingAngle
#define GetBitchFacingAngle     GetActorFacingAngle
                                                   
#define SetBitchHealth          SetActorHealth      
#define GetBitchHealth          GetActorHealth      
#define SetBitchInvulnerable    SetActorInvulnerable
#define IsBitchInvulnerable     IsActorInvulnerable
                                                   
#define IsValidBitch            IsValidActor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)