Warcraft III resources & community, 2003–2006 · archived

Unit Animations

21 posts
#1

Unit Animations

I tried doing this for a requested spell and realized I had no idea what I was doing.

I tried to make a Tauren model hero use it's Attack Slam animation, however, when I tried using Animation - Play Unit Animation it wants an entered value for the animation, but when I enter Attack Slam it doesn't work. So I looked for the Pulverize ability, looked for its animation, and tried using just "slam" again no luck.

How do I make a unit do a certain animation?
#2
You want the tauren to do a slam when he casts a spell? well, in the object editor and the spell that he will cast, change one of the top fields (it should be animation something) to the same as what ever it is in warstomp. which should be attack, slam or spell, slam. Just check to be sure.

ps. It takes too long to load the editor and im about to play b&w 2, otherwise I'd do it myself.
#3
Well on a spell the animation field would be

http://i20.photobucket.com/albums/b216/ChuckleBrother/Tada.jpg


I know this is with an attack two, but the principle is the same whether its triggered or done normally, for you it would be Attack then Slam on the list. For triggers I think you can use concanate strings or whatever they are called(Too lazy to open the editor).
#4
That is exactly what I was talking about. Just be sure to make it the same as what warstomp has in this field.

ps. you'll have to add two strings, not just one with a comma between them.
#5
Okay, this is what I tried

Unit - Play {Triggering Unit)'s slam animation

I also tried (like I said) clicking the Tauren in the Terrain and cycling through his animations in the preview window and found his Attack Slam (1.267 s) animation and entered that:

Unit - Play (Triggering Unit)'s Attack Slam animation

I also tried:

Unit - Play (Triggering Unit)'s attack,slam animation

None worked.

I don't just want to use it in the ability because I want to know how to do it for say, cinematics.

Argh, it's NONE WORKING!!!

Edit:
I just relooked at the last post and tried to do this

Unit - Play (Triggering Unit)'s (attack + slam) animation

Again, no worketh.
#6
Use the SetUnitAnimationByIndex native.
#7
Jass.. I no liketh the Jass.

I'm trying to do this with Triggers. As I don't have a want or need to learn Jass at all.
#8
frog15Jass.. I no liketh the Jass.

I'm trying to do this with Triggers. As I don't have a want or need to learn Jass at all.


Well, that's your own problem. If you don't learn at least a little JASS, you can't use that native and solve your problems.
#9
Try changing (triggering Unit) to (Casting Unit), or one that matches the event you used.
#10
Event:
A unit begins casting a spell.

I don't want to learn Jass because I don't want to go that indepth into the Wc3 Editor. What I want can easily be done with Triggers, just because I don't know exactly what they are right now does not mean that they aren't there.

The difference between Jass and Triggers is that Jass you have to code everything, you have to make a child of a Warcraft 3 map, because almost everything is your hand written creation. Triggers is pre-fabricated, allowing a person to easily move from map to map without getting bogged down in trying to find a certain Function or Call Variable or Loop End or find out where he forgot to put a / or a (. Since the Editor does it all for you in Triggers it makes it easier to quickly check something and test it.

That's why I don't want to learn Jass.

That and I don't want to take alot of time learning something that I will only use so seldom that the time spent learning it will have gone to waste.
#11
You are silly if you don't realise that you can do more with JASS than with GUI.
#12
I am well aware you can do more, I just don't want or need that type of power to fully edit every facet of the entire map.
#13
It would only require one single line of JASS, a custom script action. If you want to use that, say so and I'll tell you how to.
#14
frog15, this does not require JASS, what you have to do is change:

Unit - Play {Triggering Unit)'s slam animation

to:

Unit - Play {Casting Unit)'s slam animation

If this does not work, you may have to ask Blade.dk2 to write some JASS for you. You can implement it with your trigger so you don't have to convert the whole thing to JASS. It would use the custom script in triggers.
#15
Xeridanusfrog15, this does not require JASS, what you have to do is change:

Unit - Play {Triggering Unit)'s slam animation

to:

Unit - Play {Casting Unit)'s slam animation

If this does not work, you may have to ask Blade.dk2 to write some JASS for you. You can implement it with your trigger so you don't have to convert the whole thing to JASS. It would use the custom script in triggers.


Did you read what he said? It didn't work with that.

And by the way, frog15, don't use a unit begins casting an ability for this. Use A unit starts the effects of an ability.

Try add a call TriggerSleepAction(0) before the animation call, might solve it by the way. Else you would need a single line of JASS.

And just to inform you guys: forget the 2 in my name. It's there because of a site bug that has been around for a long time and would be easy to fix, but isn't fixed.