Animation before death
#1

Is there some sort of an include to apply an animation before the players death? I've tried with getplayerhealth etc, but I want to find out how other servers do such action in their code. They manage to set the players health, apply an animation to the position where he died without having to have a little teleport.
Reply
#2

Tell the script to register when a player hits a specific amount of HP to (say he has ten left)
Код:
ApplyAnimation(playerid, "PED", "KO_shot_front", 4.1, 0, 1, 1, 1, 300000, 1);
Код:
TogglePlayerControllable(playerid, 0);
Reply
#3

Quote:
Originally Posted by Stones
Посмотреть сообщение
Tell the script to register when a player hits a specific amount of HP to (say he has ten left)
Код:
ApplyAnimation(playerid, "PED", "KO_shot_front", 4.1, 0, 1, 1, 1, 300000, 1);
Код:
TogglePlayerControllable(playerid, 0);
Shotguns can do more than 10 damage if the player has 11 health for example, so it just messes things up.
Reply
#4

Have you tried applying the animation on OnPlayerDeath?

With my experience, disabling all animations when you die, causes an instant spawn. The default dying animation will not be played. So what if you apply the animation OnPlayerDeath (and stops it shortly after) ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)