• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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