HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attack animation

02-06-2006, 04:01 PM#1
Hemlock
Is there a way to seperate the animation Attack -1 and Attack - 2, in Gui?
It seems that the animation is randomly choosen when you write one of those strings.
02-06-2006, 07:43 PM#2
shadow1500
The answer is in this thread http://www.wc3campaigns.net/showthread.php?t=80128

or u can try playing "attack one" instead of "attack - 1" i heard somewhere it works.
02-06-2006, 08:26 PM#3
Hemlock
Attack one doesn't work, I tried that before, as well as many vary other things I came up with.

also can someone explain the ''( udg_someunit, 0)'' part
02-06-2006, 08:44 PM#4
shadow1500
Quote:
can someone explain the ''( udg_someunit, 0)'' part
that part is jass, udg_someunit is a unit variable, if u make a variable called someunit in GUI it will get the udg_ prefix in jass.
here's an example trigger

Trigger:
TestTrigger
Collapse Events
Map Initilization
Conditions
Collapse Actions
Set someunit = Paladin_0000
Set someinteger = 1
Custom Script: call SetUnitAnimationByIndex( udg_someunit, udg_someinteger)
this is how you would do it without jass.
02-07-2006, 12:55 AM#5
Hemlock
ok, is there any prefix on what index number what animation is?
02-07-2006, 09:15 AM#6
Anitarf
Stand1 is usualy on 0. The rest is different from model to model. You can use wc3viewer to look at the animations list, they're displayed in the right order there, or, you can play all the animations in-game and write down which is which.
02-07-2006, 08:31 PM#7
shadow1500
Actually, i belive war3viewer sorts them like WorldEdit does, war3model editor sorts them as they appear in the mdl, count the animations starting from zero until u see the one u want.
02-08-2006, 12:20 AM#8
Hemlock
well anitarf has a nice thaught with using the in game to check which is what, might take some more time though.

Quote:
Originally Posted by shadow1500
Actually, i belive war3viewer sorts them like WorldEdit does,

does anyone else happen to know about this?
02-08-2006, 02:28 AM#9
Vexorian
World editor might sort them correctly but it hides some animations anyways so even if it sorted them correctly it wouldn't be accurate 100% of the times.

Love the animationindex function allows me to use the pandaren elementals' dead animations
02-08-2006, 11:02 AM#10
Anitarf
I'm quite sure the world editor doesn't display animations in proper order, and wc3viewer does.
02-09-2006, 09:37 AM#11
Hemlock
Well I'll toy some with it and download wc3viewer again.

Thanks for the info guys.