• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Help Spawning Units

Status
Not open for further replies.
Level 2
Joined
Sep 21, 2007
Messages
17
Ok, I need a trigger similar to that found in "Boreal Conflict" where units are spawned by barracks/wahtever building every so many seconds for player 1 red/blue, then follow an attack path. The building is not part of the starting game, but instead is built durring the game by a player, the building does not actually train the units. Got any ideas?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick Every Unit in (Units of Type Barracks) and do Actions
    • Loop - Actions
      • If (All Conditions are True) Then do (Then Actions) Else do (Else Actions)
        • If - Conditions
          • (Owner of (Picked Unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Unit - Create 1 (blahblah)...
          • -------- order the unit to move? --------
        • Else - Actions
          • -------- Another if for blue, and so on --------
 
Status
Not open for further replies.
Top