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

[Trigger] Pick all hero owner by a player

Status
Not open for further replies.
Level 3
Joined
Mar 7, 2010
Messages
29
  • Setup
    • Eventi (Event)
      • Tempo - Elapsed game time is 0.50 seconds
    • Condizioni (condictions)
    • Azioni (actions)
      • Gruppo di unità (group of units)* - Pick every unit in (Units owned by Giocatore (Rosso))(player red) and do (Actions)
        • Giro - Azioni
          • Set PlayersHero[1] = (Picked unit)
i would want that picked unit are every hero and not every units
 
After the Unit Group pick, add an action called "If/Then/Else". On the "If" condition, go to "Boolean Comparison", scroll to Unit - Unit Classification and then it should look like this:
  • If (All conditions are true) then do (Actions) else do (Actions)
    • If - Conditions
      • ((Picked unit) is a Hero) Equal to True
    • Then - Actions
      • Set PlayersHero[1] = (Picked unit)
 
Status
Not open for further replies.
Top