PDA

View Full Version : How "precache" anim?



maxdamage99
7th February 2016, 16:04
Hello guys.
How i can play anim (setAnim (by king)) my animation? How register anim? Help pls.

Ni3ls
7th February 2016, 17:37
You dont need to precache. Just use

case "anim":
playeranim = args[2];
self setAnim(playeranim);
self thread tellMessage("Anim: "+playeranim);

And anim names are in iw_07.iwd/animtrees/multiplayer.atr

maxdamage99
7th February 2016, 18:41
Friend you stupid?:(
i put animation in xanim dir
if i play my anim, i have error...(BG_ANIMATION...)
RECOURSE:
"HOW REGISTER ANIMATION?" :)

IzNoGoD
7th February 2016, 19:41
And anim names are in iw_07.iwd/animtrees/multiplayer.atr

have you tried editting that maybe.

Edit: also, on your next stupid comment i'll go full-out on the insults, as you dont seem to have a problem with them yourself.

filthy_freak_
8th February 2016, 04:58
The custom animation needs to be added to mp/playeranim.script

However I should warn you that there is a bug from doing this; http://killtube.org/showthread.php?2329-Call-of-Duty-2-Play-Animation&p=12692&viewfull=1#post12692