Animation time? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Animation time? (
/showthread.php?tid=396012)
Animation time? -
Mikkel_RE - 28.11.2012
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);
}
Re: Animation time? -
Lz - 28.11.2012
Whats the reason to apply the animation? E.g the code before it
Re: Animation time? -
Mikkel_RE - 28.11.2012
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);
}
Re: Animation time? -
Mikkel_RE - 28.11.2012
This is the code, and how to i get the BOMBER animation to be shown in 3 seconds?
Re: Animation time? -
tyler12 - 28.11.2012
pawn Код:
forward public crackpick(playerid);
public crackpick(playerid)
{
ClearAnimations(playerid,1);
return 1;
}
Re: Animation time? -
Mikkel_RE - 28.11.2012
I dont want to clear the animation, i want it to stay for three seconds.
Re: Animation time? -
maramizo - 28.11.2012
pawn Код:
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 1, 1, 3000, 0)
Take a look at
ApplyAnimation.