• 🏆 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!

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