SA-MP Forums Archive
2 animations at once? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 animations at once? (/showthread.php?tid=77590)



2 animations at once? - SpiderPork - 12.05.2009

One simple question. Is it possible?


Re: 2 animations at once? - member - 12.05.2009

I'm pretty sure it's not possible. Imagine having two animations at once, it wouldn't look right....lol

Best thing to do is try it out. Should only take a few seconds to test it.




Re: 2 animations at once? - SpiderPork - 12.05.2009

Ok, thanks for your answer. Was just wondering.


Re: 2 animations at once? - Weirdosport - 12.05.2009

My (guess) is that it will either crash the server or one animation will take priority over the other. In most animation scripts I've seen ClearAnimations() before any animations.. so... I'd guess it caused problems.. Why do you ask btw? :P


Re: 2 animations at once? - SpiderPork - 12.05.2009

For example: running is one animation, right? And, let's say... aim a gun is another. How can they be controlled at the same time?


Re: 2 animations at once? - Weirdosport - 12.05.2009

There are a set of animations for walking while aiming, I've used them but don't have a clue what the numbers are.


Re: 2 animations at once? - SpiderPork - 12.05.2009

I wanted to combine 2 animations so you could run and shoot at the same time, like in GTA IV where you can run while aiming.
But as I can see, it's impossible.


Re: 2 animations at once? - member - 12.05.2009

There might be an animation, but you won't be able to combine two separate animations together. Have a look through the Wiki library.

https://sampwiki.blast.hk/wiki/Animations

I know it's very difficult to tell what the animation looks like, but try some and it might be the one you are looking for (providing that sort of animation you want exists).

I'l give you a list of possible animations that match your criteria:

pawn Код:
ApplyAnimation(playerid,"PED","run_1armed",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"PED","run_armed",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"PED","run_gang1",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"PED","run_rocket",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"PED","swat_run",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"ROCKET","run_rocket",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"FAT","FatRun_armed",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"ped","ARRESTgun",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"ped","gang_gunstand",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"ped","GunMove_FWD",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"ped","Gun_stand",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"SHOP","SHP_Gun_Aim",4.1,1,1,1,1,1);
ApplyAnimation(playerid,"SHOP","SHP_Gun_Threat",4.1,1,1,1,1,1);
Try some others as well. You can try the above, but do this if you want to waste your time as maybe none of them are what you are looking for.