Animation time?
#1

Hi, how can i make the animation to be shown in 3 seconds?

pawn Код:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
pawn Код:
else if(DropInfo[i][dType] == 2) // Crack
                    {
                        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                        SetTimerEx("crackpick", 3000, 0, "i", playerid);
                        format(string, sizeof(string), "You kneel down to pick up some crack.");
                        SendClientMessage(playerid, COLOR_GREY, string);
                    }
Reply
#2

Whats the reason to apply the animation? E.g the code before it
Reply
#3

pawn Код:
else if(DropInfo[i][dType] == 2) // Crack
                    {
                        ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                        SetTimerEx("crackpick", 3000, 0, "i", playerid);
                        format(string, sizeof(string), "You kneel down to pick up some crack.");
                        SendClientMessage(playerid, COLOR_GREY, string);
                    }
Reply
#4

This is the code, and how to i get the BOMBER animation to be shown in 3 seconds?
Reply
#5

pawn Код:
forward public crackpick(playerid);

public crackpick(playerid)
{
ClearAnimations(playerid,1);
return 1;
}
Reply
#6

I dont want to clear the animation, i want it to stay for three seconds.
Reply
#7

pawn Код:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 1, 1, 3000, 0)
Take a look at ApplyAnimation.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)