HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Brining out a specific animation

04-01-2006, 03:41 PM#1
Sukul
I was wondering if it was possible to bring out a certain animation in a unit. For instance, I want to make it so, when my unit picks up a 2h item, he plays the 2h attack animation instead of the 1h attack.
04-01-2006, 04:12 PM#2
Thunder_Eye
Well If the unit already has all the animations (including your 2h animations)
You can name them all "Attack 2H".

Then when you want the unit to attack with its 2h animations use the trigger
"Add Animation Tag" and add that 2H.
Trigger:
Animation - Add the 2H animation tag to Peasant 001 <gen>

Else If what you are asking is how to add animations to an model, then I dont know.
04-01-2006, 07:37 PM#3
Sukul
Just figured it out-

Trigger:
Unarmed Naga Attack
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Unit-type of (Attacking unit)) Equal to Naga
Unarmed Equal to (Proper name of (Attacking unit))
Collapse Actions
Set bbb_random_unarmed_Attack = (Random integer number between 1 and 2)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
bbb_random_unarmed_Attack Equal to 1
Collapse Then - Actions
Animation - Add the Attack animation tag to (Attacking unit)
Animation - Play (Attacking unit)'s Attack animation
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
bbb_random_unarmed_Attack Equal to 2
Collapse Then - Actions
Animation - Add the Attack 1 animation tag to (Attacking unit)
Animation - Play (Attacking unit)'s Attack 1 animation
Collapse Else - Actions
Do nothing

This is just used to bring out the 2 (2h attack) animations

I'm having another problem now- After the unit attacks anther unit, it permanently plays the units swim animation whenever he walks.
04-01-2006, 07:58 PM#4
Thunder_Eye
I think you'll have to make a walk animation named "Walk 2H" or something maybe, cause if the engine cant find any animations of a type (Stand,Walk,Attack) with the "2H" in it. It will use some of the other instead.
04-01-2006, 08:43 PM#5
TDR
I realy don't see how this is related to modeling or animating. please pay more attention to where you post your topics. moved.