Spawn Units

Drakethos

Preordered Sc2 ftw!
Reaction score
56
Im making a footman frenzy like map and i need help making a trigger that spawns units according to your race.
 

Sirroelivan

Gunnerkrigg Court
Reaction score
95
You could do it like this


Code:
Spawn
    Events
        Time - Every X_int seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units of type X_building) and do (Actions)
            Loop - Actions
                Unit - Create 1 X_unit for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees

You should make such a trigger for each different type of "barracks" you have.
X_int= how much time you want between two spawns
X_building= your "barracks"
X_unit= the unit you want spawned
 

Slapshot136

Divide et impera
Reaction score
471
Code:
Event: every 5 seconds of game
conditions: none
actions:
pick every unit of type (human base) and create 1 (footman) at (position of picked unit) for (owner of picked unit)
pick every unit of type (night elf base) and create 1 (archer) at (position of picked unit) for (owner of picked unit)
pick every unit of type (undead base) and create 1 (ghoul at (position of picked unit) for (owner of picked unit)
pick every unit of type (orc base) and create 1 (grunt) at (position of picked unit) for (owner of picked unit)
so on and so forth..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top