Spawn more than one unit?

Anonymous>1<

New Member
Reaction score
0
Is there a way to spawn a group of units when u buy just one. Like, per say u wanted to buy a squadron of troops. How would u do that?
 

Kazuga

Let the game begin...
Reaction score
110
With triggers my friend.

Use the event "unit finishes training a unit" (or w/e it's called).
Set a variable point on the unit to prevent leaks.
Create your other units there.
Remove the leak.
There you go!
 
Reaction score
86
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • Unit - Create 5 Footman for (Owner of (Buying unit)) at (Position of (Sold unit)) facing Default building facing degrees

The action leaks a point, but that is roughly what you want. Put a condition comparing (Sold Unit) to (footmen Squadron) or something.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top