Wounds System
#2

You need to set the animation to 'looping', so it won't stop after it's done playback. All you need to do is change the '0' to a '1' for the loop parameter in ApplyAnimation.

pawn Код:
forward DeadAnim(playerid);
public DeadAnim(playerid)
{
    OnAnim{playerid} = true;
    ApplyAnimation(playerid,"PARACHUTE","FALL_skyDive_DIE",3.5,1,0,0,1,0);
    return 1;
}
Then, once they do /acceptdeath or the FD arrives, you can ClearAnimations or apply another 'standing up' animation.

References:
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/ClearAnimations
Reply


Messages In This Thread
Wounds System - by FaZeRs - 04.05.2015, 22:36
Re: Wounds System - by Threshold - 05.05.2015, 03:31

Forum Jump:


Users browsing this thread: 1 Guest(s)