Birth Animation for Multiple Units

Fung

New Member
Reaction score
0
I apologize if I didn't read enough and this was already posted.

First off, I am new to the editor. I've been spending time doing a lot of basic things and getting familiar with the editor. So far I've had a lot of fun and really enjoyed reading the posts on the forum.

With that being said there are some things I can't figure out. I am trying to create multiple units and have their birth animations play slowly. Here is the basic logic I went with creating the trigger.


Unit - Create 5 Greater Dark Minion for Neutral Hostile at (Random point in Unit Spawn <gen>) facing Default building facing degrees
Animation - Play (Last created unit)'s birth animation
Animation - Change (Last created unit)'s animation speed to 80.00% of its original speed

This doesn't work. It only plays for 1 unit. The long fix is to make a trigger like this for a single unit and duplicate it, but that's a lot of clutter. Is there an easy way to do this?

Also the animation process is kind of funky. Since triggers go off in numerical order the unit is spawned, then removed to play the birth animation. I've masked this with special effects, but that limits me on being able to randomly create units in a region. I have to make them static spawns and enter the location to play the special effect.

I hope I've been descriptive enough. Any help is greatly appreciated.
 

Don

Rise with the Fallens!
Reaction score
52
try to pick every unit in <unit spawn> and order picked unit to play birth animation.
 

Evan1993

Ultra Cool Member
Reaction score
30
try to pick every unit in <unit spawn> and order picked unit to play birth animation.

This will do it for all units in the region.. not just the ones he created with the trigger!

Use this instead:
Code:
Actions
    Unit - Create 5 Greater Dark Minion for Neutral Hostile at (Random point in Unit Spawn <gen>) facing Default building facing degrees
    Unit Group - Pick every unit in (Last created unit group) and do (Actions)
        Loop - Actions
            Animation - Change (Picked unit)'s animation speed to 80.00% of its original speed
            Animation - Play (Picked unit)'s birth animation
 

PrisonLove

Hard Realist
Reaction score
78
correct me if im wrong but dont youhave to add Last created unit to Last Created Unit Group before you can pick every unit in that unit group? otherwise it will be picking nothing
 

Don

Rise with the Fallens!
Reaction score
52
I doubt since the 5 last created units make a group, it doesnt need to be done the same way as with variables!
 

Fung

New Member
Reaction score
0
Excellent!!! That works.

Both of you, thank you! Very quick and friendly responses.

As they say +rep.
 

Don

Rise with the Fallens!
Reaction score
52
hum fung, to make +rep you need to click the balance next to the ! icon, right top of my or any other helper's posts lol :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top