Animation problem
#4

With 1 ApplyAnimation function, the animation might not work, so try this:

pawn Код:
OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    if (gPlayerUsingLoopingAnim[playerid] == 1)
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
        ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
        ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
    animation[playerid]++;
}

LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    if (gPlayerUsingLoopingAnim[playerid] == 1)
    gPlayerUsingLoopingAnim[playerid] = 1;
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
    animation[playerid]++;
}

StopLoopingAnim(playerid)
{
    gPlayerUsingLoopingAnim[playerid] = 0;
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
}

PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
        ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
        ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
Reply


Messages In This Thread
Animation problem - by ShoortyFl - 27.06.2015, 13:45
Re: Animation problem - by Ritzy2K - 27.06.2015, 13:52
Re: Animation problem - by ShoortyFl - 27.06.2015, 13:54
Re: Animation problem - by Youssef221 - 27.06.2015, 13:55
Re: Animation problem - by ShoortyFl - 27.06.2015, 13:58
Re: Animation problem - by Youssef221 - 27.06.2015, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)