Animations bug
#1

Hey,
This is well known bug, but in 0.2X, it could be fixed by applying the same animation twice..
But now sometimes it doesn't help..
I have this:
pawn Код:
PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);

//OnPlayerConnect
PreloadAnimLib(playerid,"DANCING");
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1); //just incase

//OnPlayerRequestClass
ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
But it doesn't applies when I connect and it shows me spawn screen.
I have to change class ( < or > ) and it applies after changing the class...
Is there any other way to fix it?

P.S. I also tried applying it two times OnPlayerRequestClass callback, but still it doesn't applies at first.. :\
Reply
#2

Try use it under OnPlayerSpawn().
Reply
#3

Quote:
Originally Posted by FreddoX [BINMAN
]
Try use it under OnPlayerSpawn().
OnPlayerSpawn is called after OnPlayerRequestClass..
I'll try to make something with timer, maybe that will help...
Reply
#4

Quote:
Originally Posted by SiJ
Quote:
Originally Posted by FreddoX [BINMAN
]
Try use it under OnPlayerSpawn().
OnPlayerSpawn is called after OnPlayerRequestClass..
I'll try to make something with timer, maybe that will help...
Yeah, set it to like half a second or something.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)