• 🏆 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] 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
731
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