HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Animation stand - 4?

01-06-2004, 06:00 PM#1
Voi
How do I make a unit use just stand - 4? I want a unit to use just that specific stand-animation but I dont get it work...
01-06-2004, 06:06 PM#2
Vexorian
you probably have to use play (unit) stand animation using only Rare animations
01-06-2004, 06:38 PM#3
PitzerMike
JASS SetUnitAnimationByIndex
01-06-2004, 06:51 PM#4
Voi
thx the last one. I'll try that if I can find out how to use it... not so good at JASS...can just convert triggers to JASS... one more thing: Can I make so he cannot use that animation othervise? so I only can use it when I order him to use it?

call SetUnitAnimationByIndex( gg_unit_H00Q_0133, "stand","4" )?
01-06-2004, 06:57 PM#5
Shark
or try stand fourth .... i used one attack animation in my spell like "attack" "second" and it works fine...so i guess, maybe it will work for triggers too :)
01-06-2004, 07:22 PM#6
Voi
stand fourth neither work...I need help with the JASS trigger, write more exact with arguments...
01-06-2004, 09:04 PM#7
PitzerMike
call SetUnitAnimationByIndex( gg_unit_H00Q_0133, 1)

for example. the second argument is the number of the animation.
switch through the animations in the previewer and find the approximate number out, then find the number by trial n error out in game
01-07-2004, 01:35 PM#8
Voi
I dont think it works...u mean like this I guess:

Play animation "stand" for Captain 0133.
call SetUnitAnimationByIndex( gg_unit H00Q_133, 4)

I tried this...
I can tell u what I want. You know the Captain has an animation there he drinks...It takes 5 seconds for him to do that so here is the trigger I used for my spell (I know u can set animation in the spell but stand - 4 didnt work there...) looks like this (I dont care about events):

Actions:
Pause Captain 133
Play animation "stand"
custom script: call SetUnitAnimationByIndex(gg_unit_H00Q_133, 4)
w8 3.00 game-time seconds.
Create a special effect on unit located in blah blah
Make last created special effect to DrinkTarget attached on head
w8 0.50 game-time seconds
Remove DrinkTarget
w8 1.50 game-time seconds
Unpause Captain 133

Just tell me how to make him use Stand 4 in this trigger (everything else works)
01-07-2004, 03:06 PM#9
Shark
man....if everything fails, make a dummy spell like "channel" that uses "stand,fourth" animation, and does nothing....blizz used it for channeling nothing spells, like Illidan, or naga summoners...
it don't show up as an ability, so the only way u can "activate it" is thru triggers....

so make this "unit - order captain to Channel"
and then do whatever u need....or use JASS :)
01-07-2004, 07:49 PM#10
PitzerMike
Always use a Reset Unit Animation action before setting unit animations. Otherwise they will often fail.

Then the Nr isn't necessarily 4, you'll have to test that
01-11-2004, 07:36 AM#11
THE FENIX >ۼ>
hi.....i had the same problem with the diferent stand animations, only that it was(it is) with the blademaster...
i read that u can´t do the captain drinks his bottle but i had done it after i read your post.
i tried doing this and it works:
- event
i put "Player types a message" (put what u want)
- accions
animation - play captain (stand + (string(4))) animation, using only rare animation

i tested it and it works, only that the animation will repeat until u reset it...
plis try like this and if it works tell me 8))

i think that someone should put a list with all the animations for each unit....well, only the special animations, stand animations and all that...
01-12-2004, 06:18 PM#12
Voi
thx I will try now and the lists...no need. Just select the units and u see the different animations...

STILL DOESNT WORK

I have an idee why:
I added another spell that makes him defend but not the normal way... so I added defend to required animation names and then disabled all defend animations with triggers...so thats why it doesnt work to play stand 4???
01-13-2004, 04:13 AM#13
THE FENIX >ۼ>
i said the list of animations because i have tried to put the 2nd and 4th stand animations of the blade master but it didn´t work i don´t know why...

i don´t understand that of the spell u put and the defend of the captain not the formal way..........what do u want to do? put the captain drinking animation and what else? if i can i will help u...
01-13-2004, 02:33 PM#14
Voi
READ ALL first!!