HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What is the animation waiting for?

09-22-2003, 03:29 AM#1
Panto
Greets.

I have a unit based off of a Night Elf Ancient model. When the unit is trained, it plays its building animation.

I thought that a trigger like:
Code:
Events:
A unit enters the Playable Map Area
Conditions:
Unit is a "Tree"
Actions:
Play stand animation for Entering unit
would solve the problem. However, it doesn't do anything. So, I swapped the Play Animation action for a Order entering unit to move to position of entering unit offset by 1,1 would work, since it would start playing the move animation.
When the building that trains the "tree" has its rally point set out somewhere, the unit plays its move animation immediately, so I thought that second event would work. However, it doesn't either.

I tried adding a Game-Wait for 1.00 Action before both of these triggers, and it didn't work.

Cursory inspection in the preview window says that the model *does* have a "stand" animation. What am I missing?
09-22-2003, 03:34 AM#2
AllPainful
I had the same problem

Fixed it with the following trigger.

Event
Unit is Trained

Condition
Trained unit is of type ****

Action
Wait .15 seconds
Play stand animation for trained unit


It didn't work for me till I added the .15 second wait....

I don't know why it didn't work for you...

You made sure you have the type correct?

I don't know if "Trained" units count as entering units...

I know our problems were the same because I made a unit (mine was a hero) based off of one of the NE Ancients too... (I used the Ancient of Wonders)
09-22-2003, 06:47 PM#3
Panto
I did the small changes to make my trigger just like yours, and it still isn't working right. What's going on?
Code:
Events
    Unit - A unit Finishes training a unit
Conditions
    Or - Any (Conditions) are true
        Conditions
            (Unit-type of (Trained unit)) Equal to Elm
            (Unit-type of (Trained unit)) Equal to Oak

Actions
    Wait 0.15 game-time seconds
    Animation - Play (Trained unit)'s stand animation
09-22-2003, 08:13 PM#4
AllPainful
Good question. Your trigger looks fine.

Did you varify that the trigger is turned on?

How are these units "Trained", maybe "Trained" isn't the right thing, if they are sold at a tavern then you would need to use "Sold" instead of trained.
09-23-2003, 03:37 AM#5
Saethori
Quote:
Originally posted by Panto
I did the small changes to make my trigger just like yours, and it still isn't working right. What's going on?
Code:
Events
    Unit - A unit Finishes training a unit
Conditions
    Or - Any (Conditions) are true
        Conditions
            (Unit-type of (Trained unit)) Equal to Elm
            (Unit-type of (Trained unit)) Equal to Oak

Actions
    Wait 0.15 game-time seconds
    Animation - Play [color=orangered](Trained unit)'s[/color]  stand animation


Problem's here..
You're trying to make the unit being made stand.. try swapping this with 'Training Unit'.
09-23-2003, 03:49 AM#6
UltimateJim
thats what he wants, the trained unit (created unit) to play its stand anim, are these buildings or units?
09-23-2003, 04:06 AM#7
Saethori
Hm? I must've misunderstood. I thought he had a unit that looked like an Ancient that he didn't want the work animation to display for. -.-

Note to Self: read more thoroughly