Animation doenst work?
#1

Hello.

I have this animation at OnPlayerSpawn. (Action: Hopistal) While dieding..

Code is:
Код:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0, 1);
Must be work, but i dont see animation.

What problem? He ain't staying and don't anim.
Reply
#2

Preload your Animations.

Код:
public OnPlayerConnect(playerid)
{
    PreloadAnimLib(playerid,"CRACK");
}
    return 1;
}
This somwhere in your Script, not in a public:

Код:
PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
Reply
#3

Still doens't work. :S
Reply
#4

This might work i think the last parameter is the amount of time the anim will last (ms) '0' is never ending loop.
pawn Код:
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 5000);
EDIT: I failed i was looking at older documentation.

EDIT2: Glad it works lol i didn't think it was going to
Reply
#5

It was working, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)