ANIMATION x@
#9

you can put the stock anywhere but I suggest you to put all of your stocks on the bottom of your script, you can find them easier. When you use ApplyAnimation with 'null' as a animation name, you won't have to do animations from some library again. For example, if you write in your code this:
pawn Код:
ApplyAnimation(playerid,"BEACH","null",0.0,0,0,0,0,0);
all animations from BEACH library will work in the first time you write your command with those animations, but all the other libraries aren't 'loaded', so you can create another stock which will load all animation libraries that you need.
pawn Код:
stock PreloadAnimLib(playerid, animlib[])
{
    ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
}
stock PreloadAllAnimLibs(playerid)
{
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"FAT");
    PreloadAnimLib(playerid,"ped");
    PreloadAnimLib(playerid,"Attractors");
    PreloadAnimLib(playerid,"CRIB");
    PreloadAnimLib(playerid,"MISC");
    PreloadAnimLib(playerid,"INT_HOUSE");
... and so on
        return 1;
}
Reply


Messages In This Thread
ANIMATION x@ - by AnonScripter - 11.11.2013, 18:13
Re: ANIMATION x@ - by Loot - 11.11.2013, 18:36
Re: ANIMATION x@ - by PrivatioBoni - 11.11.2013, 18:38
Re: ANIMATION x@ - by Konstantinos - 11.11.2013, 18:39
Re: ANIMATION x@ - by Alex Magaсa - 11.11.2013, 18:40
Re: ANIMATION x@ - by AnonScripter - 11.11.2013, 18:48
Re: ANIMATION x@ - by Konstantinos - 11.11.2013, 18:59
Re: ANIMATION x@ - by AnonScripter - 11.11.2013, 19:33
Re: ANIMATION x@ - by dominik523 - 11.11.2013, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)