HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack2?

05-19-2006, 01:03 PM#1
Siphonized
I want to use my units "Attack 2" effect... How do I add that as an animation name?

Just "attack2" ?
05-19-2006, 01:07 PM#2
Panto
Actually, it's basically impossible to play a particular animation on a unit without using a trigger to force it. I'll direct your thread that way.
05-19-2006, 01:15 PM#3
Siphonized
it's impossible to do it on an ability? strange, cause I recall being able to use Slam when casting a spell on the Grom Hellscream model.
05-19-2006, 01:20 PM#4
bounty_hunter2
on ability yes but not on attack when using ability you must name the animation name same as the animation

spell
slam
attack work

etc
05-19-2006, 01:30 PM#5
Siphonized
yes, that's what I am talking about... I want to use my models 2nd attack animation... It's called "Attack - 2", and the unit is Abomination.

How do I use it in my ability?
05-19-2006, 01:33 PM#6
bounty_hunter2
Art Animation Names

Attack - 2
05-19-2006, 01:33 PM#7
Jacek
Either use animation index or add "2" animation tag by triggers should work.

and Panto, try adding alternate as additional animation name to demon hunter and w00t Metamorphosis without triggers
05-19-2006, 01:41 PM#8
Siphonized
"attack2" (this didn't work btw)

or

"attack"
"2"

?
05-19-2006, 01:43 PM#9
bounty_hunter2
attack - 2
05-19-2006, 02:40 PM#10
MysticGeneral
Quote:
Art Animation Names

Attack - 2

This won't work. I've done a little research on this a few days, as I wanted to do the same thing.

The only thing you can do is "Attack". However, it'll loop back and forth through his 1st and 2nd attack animations randomly.
05-19-2006, 02:46 PM#11
Thunder_Eye
use the jass function that plays animation by index then
05-19-2006, 02:48 PM#12
MysticGeneral
It's "SetUnitAnimationByIndex"
05-19-2006, 02:48 PM#13
iNfraNe
Collapse JASS:
native SetUnitAnimationByIndex takes unit whichUnit, integer whichAnimation returns nothing
To know how to find animation indexes check out the cinematic tricks sticky in the cinematics forum.

edit: mystic is faster ...
05-19-2006, 02:58 PM#14
MysticGeneral
But you're more descriptive :) Anyways, if you're a little lost (as I can see why) then here's a bit more info:

Make a trigger when the unit casts the ability. Make sure to put in the correct conditions and events. In the action, it should look like

Trigger:
Custom Script: call SetUnitAnimationByIndex(yourUnit, theAnimationsInteger)
05-19-2006, 05:12 PM#15
HarbingerOne
Quote:
Originally Posted by MysticGeneral
But you're more descriptive :) Anyways, if you're a little lost (as I can see why) then here's a bit more info:

Make a trigger when the unit casts the ability. Make sure to put in the correct conditions and events. In the action, it should look like

Trigger:
Custom Script: call SetUnitAnimationByIndex(yourUnit, theAnimationsInteger)

If i copy paste thiw script itt will work? And what format should I use?
Like: call SetUnitAnimationByIndex(Slayer 0003 <gen>,Attack 2)