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

Pick - Every Unit.... Multiple Unit Types...

Status
Not open for further replies.
Level 4
Joined
Jun 11, 2009
Messages
23
Can you select multiple unit types, i really dont want to create a big trigger for each unit types..

Thanks..

Edit: Btw, i have tried to create variable; Unit types, and then picking them with interger A. dident work..
 
Level 7
Joined
Apr 1, 2010
Messages
289
well, what you could do is

  • Custom script: set bj_wantDestroyGroup=true
  • Unit Group - Pick every unit in (Units within 512.00 of Point) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked unit) is alive) Equal to True
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Picked unit)) Equal to Footman
        • Then - Actions
        • Else - Actions
then just add this
  • (Unit-type of (Picked unit)) Equal to Unitype
for each unit type into the or condition.
 
Status
Not open for further replies.
Top