Looking for a suiting animation
#1

Hello, does anyone know a suiting animation for a player using bandages on himself?

https://sampwiki.blast.hk/wiki/Animations
Looking here, and it's a lot of animations but they're not VERY descriptive.
Reply
#2

Have you saw the animation playing in Single Player? If so, have you a video?
Reply
#3

No, I don't have any animation set in mind, just hoping someone might know of an animation that would work for it.

I've found a temporary solution, however.. I want the animation to stop automaticly without the player having to click or press F..

I'm trying to use ClearAnimation but that doesn't work as the player still has to do something to be able to move again. The only solution I made up, which works, is slapping the player by Z + 1, however this doesn't look very good, so I'd rather settle with a better solution if there is one possible.

pawn Код:
ApplyAnimation(playerid, "ON_LOOKERS", "panic_loop", 4.1, 1, 0, 0, 1, 4950, 1);
                    SendClientMessage(playerid, COLOR_DARKCYAN, "You carefully use bandages on your wounds.");
                    SetTimerEx("Healing", 5050, false, "i", playerid);
This is the part where it starts the animation and sets a timer to apply the heal and end the animation.


Here is the timer:

pawn Код:
SetPlayerHealth(playerid, NewHealth + 20);
        SendClientMessage(playerid, COLOR_GREEN, "You have succesfully healed yourself!");
        ClearAnimations(playerid, 1);
Reply
#4

Bump
Reply
#5

Let me guess, DayZ? lol

I found this:
Quote:

SetTimerEx("yourTimer",2000,false,"i",playerid);//starting it
//somewhere outside

forward yourTimer(playerid);
public yourTimer(playerid)
{
ClearAnimations(playerid);
return 1;
}

From a quick search: http://forum.sa-mp.com/showthread.ph...nimation+timer

You need to forward your timer. No need to thank me lol. You could click the link in my sig, though.
Reply
#6

What about
pawn Код:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant",4.1,0,1,1,0,0);
? I really like this one (Looks like crouching and bandaging your hand)
Reply
#7

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
Let me guess, DayZ? lol

I found this:


From a quick search: http://forum.sa-mp.com/showthread.ph...nimation+timer

You need to forward your timer. No need to thank me lol. You could click the link in my sig, though.
Don't know what you mean with DayZ..
My timer is already forwarded, ClearAnimation just doesn't work for all animations and I fixed it with SetPlayerSkin(playerid, GetPlayerSkin(playerid)).

Gonna try out the Bomber animation now Zero
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)