HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Remove unit's specific animation

04-16-2007, 12:36 AM#1
The Curse
Well, I found this model of a skeleton around the war3 block and I tried attaching guns to its hands. Ok heres where the problem started, the default attack animation of the unit is...bashing/hitting physically. It looks very awkward when you try to give them guns. The default standstill animation is perfectly fine (cuz the guns are pointed in the right direction).

To make a long story short, I need to make the unit play its stand animation when attacking. Or at least make the unit not play its attack animation. Is this possible?
04-16-2007, 12:50 AM#2
Tide-Arc Ephemera
Um... there is a way but I'm not sure if this could be what you want (since Skeletons don't really have a firing animation)...

Trigger:
Skeletal Gun
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Unit-type of (Attacking unit)) Equal to Skeleton Warrior
Collapse Actions
Animation - Play (Attacking unit)'s stand animation

That should work.
04-16-2007, 01:27 AM#3
The Curse
Yay it worked. But its rather jerky. He looks a little like he was fidgeting...but otherwise fairly good. Thanks for help ;)

A little problem i just got. When you actually order it to attack a target it plays stand animation it works. But when you dont order it to attack a target and its not attacked (enemy unit is in range but busy attacking someone else), it reverts back to standard bashing. How do I fix this?
04-16-2007, 01:58 AM#4
Tide-Arc Ephemera
Quote:
Originally Posted by The Curse
Did I get this right? It didnt seem to be working when I tested.

Trigger:
Skeleton
Collapse Events
A unit is issued an order targeting an object
Collapse Conditions
Collapse And - All conditions are true
(Unit type) of Target unit of issued order)) Equal to Skeleton
Issued Order Equal to (Order(Attack))
Collapse Actions
Animation - Play (Target unit of issued order)'s stand animation

If he's not swinging his axe/sword/w.e, then it's working. Usually a unit has several stand animations, try each one out.
04-16-2007, 04:26 PM#5
Chriz.
Here's the skeleton model with only Birth, Death, Stand, Stand Victory and Walk animations. Import it and he should do what you want easily, without any triggers.
Attached Files
File type: mdxSkeleton.mdx (120.4 KB)
04-19-2007, 12:47 AM#6
The Curse
Thanks chriz.

Hey how do you remove anim from a model?
04-20-2007, 12:33 PM#7
Hyarion
I believe you can simply open it with notepad or another text editor, and delete the section pertaining to that animation. You -should- be able to find that section fairly easily, but it's been a while since I did it, so I'm not sure...
04-20-2007, 02:36 PM#8
Earth-Fury
Quote:
Originally Posted by Hyarion
I believe you can simply open it with notepad or another text editor, and delete the section pertaining to that animation. You -should- be able to find that section fairly easily, but it's been a while since I did it, so I'm not sure...
convert it to an MDL before attempting such a thing =) (check the tools section) Remember, tho: if you remove something, you must also remove all referances to it, and adjust counts to make sure everything is still in line.

MDX is a binary format (need a hex editor to edit it), MDL is a textual format. (need any kind of notepad to edit it)