ApplyAnimation Problem! - 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: ApplyAnimation Problem! (
/showthread.php?tid=580104)
ApplyAnimation Problem! -
Ugaustin - 02.07.2015
I cant see my animation.. is the apply animation good??please help !
PHP код:
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
Re: ApplyAnimation Problem! -
Threshold - 02.07.2015
Animations require a pre-load before being used. Basically you need to load each animation library before it will become visually functional.
Refer to PreloadAnimLib:
pawn Код:
PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid, animlib, "null", 0.0, 0, 0, 0, 0, 0);
pawn Код:
// OnPlayerConnect? OnPlayerSpawn?
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD" );
PreloadAnimLib(playerid,"PED" );
EDIT:
Reference:
https://sampforum.blast.hk/showthread.php?tid=284953&page=2
Re: ApplyAnimation Problem! -
Ugaustin - 02.07.2015
yes thanks fixed
![Smiley](images/smilies/smile.png)
I didn't know about it
Re: ApplyAnimation Problem! -
JaydenJason - 02.07.2015
Yoooooou could place it under OnPlayerSpawn so it gets called a bit more often and thus less problems!