Only one player sees animation
#1

Hello! I have little problem. I have /shakehand command, and when two players try to use it, player 1 only sees his animation and second player sees his command. I have preloaded anim libs, and I tried to put force sync to 1 in ApplyAnimation but it won't work. Here is my code:
pawn Код:
ApplyAnimation(playerid,"GANGS","hndshkaa",4.0,1,1,1,0,1000,1);
           ApplyAnimation(PendingHandshake[playerid],"GANGS","hndshkaa",4.0,1,1,1,0,1000,1);
Does anyone know why players see only their animations?
Reply
#2

You need to preload the animation libraries before performing animations.
Reply
#3

I got this under onplayerspawn:
pawn Код:
stock PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
stock PreloadAllAnimLibs(playerid)
{
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"FAT");
    PreloadAnimLib(playerid,"ped");
... all anim libraries I need
}
Reply
#4

You should be good then.
Reply
#5

well there is some other problem with only some animations, and I have no idea what to do
Reply
#6

Most likely your parameters need adjusting.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)