• 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.

[SOLVED] UnitGroup Ally

Status
Not open for further replies.
Level 20
Joined
Jul 6, 2009
Messages
1,885
Try something like this
  • Unit Group - Pick every unit in YourGroup and do (Actions)
    • Loop - Actions
      • Set Owner = (Owner of (Picked unit))
      • Unit Group - Pick every unit in YourGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Owner Not equal to (Owner of (Picked unit))
            • Then - Actions
              • Player - Make Owner treat (Owner of (Picked unit)) as an Ally with shared vision
            • Else - Actions
 
Status
Not open for further replies.
Top