• 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] pick allies and enemies

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
ok i cant pick all units of enemies and alies of triggering player and heres my error how to fix it?
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • --my condition--
    • Then - Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Matching unit)) matching (((Matching unit) belongs to an ally of (Triggering player)) Equal to True)) and do (Actions)
        • Loop - Actions
 
Last edited:
Level 13
Joined
Oct 16, 2010
Messages
737
I'm pretty sure you don't need the first part of the Pick Every Unit, I'm guessing that the player you want as the primary player (those who's allies this is picking) is Triggering Player. Just use a "Pick every unit in region matching condition", have the region as Playable Map Area and use your second part as the condition. That's what I'd do anyway
 
Status
Not open for further replies.
Top