NPC is not playing Animation
#1

I have preloaded the animation library onplayerconnect

pawn Код:
ApplyAnimation(playerid, "CRACK", "null", 0.0, 0, 0, 0, 0, 0);
I've sent the animation to play it OnPlayerSpawn
pawn Код:
if(strcmp(name,"Hobo1",true)!=0)
        {
            SetPlayerSkin(playerid, 230);
            ApplyAnimation(playerid,"CRACK","crckidle2",1,0,0,0,0,0,1);
        }
Yet the NPC doesn't play the animation e.e
Reply
#2

Bump back onto first page, \_/ <-- Cup of how much I give a fuck for 12 hours.

Oh look, it's empty.
Reply
#3

Does the NPC's skin change to the desired one?
Reply
#4

Yes.
Reply
#5

try this.

pawn Код:
if(strcmp(name,"Hobo1",true)!=0)
{
    SetPlayerSkin(playerid, 230);
    ApplyAnimation(playerid, "CRACK", "crckidle2", 4.0, 0, 0, 0, 0, 0);
}
Reply
#6

so you want me to change the delta and remove the force anim? alright worth a try.

EDIT: Nope didn't work.
Reply
#7

This is happening to me to, I will give +rep (isn't that what people wants?). I've thought it is caused by the recording.. but not sure.
Reply
#8

I will also give rep++ to whoever finds us a solution to this problem.
Reply
#9

The last time I tried this, I added the animation code under OnPlayerUpdate.

pawn Код:
public OnPlayerUpdate(playerid) {
    if (IsPlayerNPC(playerid)) {
        ApplyAnimation(playerid, "CRACK", "crckidle2", 4.0, 0, 0, 0, 0, 0);
    }
    return 1;
}
That is the only way I can remember getting it to work.

P.s. I'm not a fan of how the current NPC system works.
Reply
#10

Try setting the ApplyAnimation twice.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)