HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Animation question

12-07-2002, 05:11 PM#1
Guest
How do I make units pose differently? On the left side of the toolkit (underneathe the minimap) they show a picture of the unit I have selected, and I can change it so the unit is in different poses, however, it does not show up on my game map. If anyone knows how I can make this work, please respond. I would greatly appreciate it. Thanks!
12-07-2002, 05:23 PM#2
Kerry
Use action Animation - Play unit animation

Play [units] stand animation.

Stand can be changed to whatever the unit has, look at the name of the animation in that animation window.
12-07-2002, 06:36 PM#3
Guest
That's what I've tried and it hasnt seemed to work...here, ill tell you what im doing..maybe someone can figure out the problem here...
alright
Im trying to make an aftermath type campaign from the old warcraft 2 expasion set. there is a part in this map where Alleria (a custom hero) walks by Khadgar (An emmissionary) who is busy casting a spell. However, every time she walks by him, hes just frozen in place. He doesnt move or anything. Here is what my trigger says..

Events - Map initialization (Khadgar doesnt serve any other purpose in this map. I just want him to be busy casting a spell, so I figured i might as well just have him do this the entire time)

Conditions - None

Actions - Play <Khadgars> spell animation

If any of you know what Im missing, please let me know. I've tried so many times to fix this, but I cant seem to figure it out. Thanks for your help!
12-07-2002, 06:51 PM#4
Killer927
You might want to replace Event - Map initialization with Time-Every x seconds...

Because the Map Initialization event will ocur once the map is loaded, not when you are actual "in" it...

That might be why you don't see him casting.
12-07-2002, 10:59 PM#5
Kerry
Yes exactly because that action dosent make the animation to be played over and over again, only once.
12-08-2002, 12:30 AM#6
Draco
Make it a Periodic event about every 1 second. The animation that you are trying will end in about 2 seconds, and the player will never see it.
12-08-2002, 12:37 AM#7
Deicide
Some animations (Stand, Stand Victory, Stand Ready, Spell Channeling) will repeat themselves, while others (Spell, Attack) will only play once, and then the unit will freeze.

In the latter case, you should use some periodic trigger so that the unit will do the animation several times.
12-08-2002, 07:32 AM#8
Guest
Awesome! I got it! Thanks everyone for all your help. Really appreciate it!
12-08-2002, 04:39 PM#9
nicoli_s
als when uwant him to stop dont forget to turn off the trigger and tell it to reset his animation
12-08-2002, 08:08 PM#10
Milkman
If you want for example the stand-4 animation you've got to use
play unit animation specify rarity stand-4
wait x secs
rest unit animation
12-08-2002, 09:18 PM#11
Deicide
Some tips:

- If you want some animation to play only once, give the Action "Play Animation" as normal, and then do the action: Queue Animation. This way, the unit will start the second animation as soon as the first ends. This is good because you don't need to know how much time an animation takes to end, and also it can be used to stop the freezing effect that some animations do to the unit once they are over.

- You can stop an animation by Playing Stand Animation, Reseting Unit Animation or by giving an order to the unit (it will reset normal behavior).

- Some animations have common and rare animation variants. You can't really play specific rare animations, tough. For example, Stand -1 is the common animation. Stand -2, -3, etc. are rare animations. You can make a unit ONLY play the common or ONLY the rare (but not a specific rare) animations using Play Animaion - Specify Rarity. Some animations (Stand Ready, Stand Victory, etc.) only have one common variance.

- Animations that are only in text are common animations, and can be played normally. For example: "Stand -2" for Medivh is rare. But he also have "Stand Second" that is a special common animation, and can be played. To play "Stand -2", you need to make he play "Stand with Rare Animations", while to play "Stand Second" you don't need to specify rarity.