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

How to navigate to the picked unit you want in a situation like this?

Status
Not open for further replies.
Level 11
Joined
Jan 23, 2015
Messages
788
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in UG1 and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
          • Unit Group - Pick every unit in UG2 and do (Actions)
            • Loop - Actions
              • Unit - Kill (Picked unit)
The picked unit of the second group refers to the first group, how do I make it refer to the second one? (i need it to be just like this, "pick in a pick" :vw_death: )
 
Level 25
Joined
Sep 26, 2009
Messages
2,381
Why exactly do you need that second unit group in the first one? Assuming you would get to the picked units of UG2 group, you would kill all those units n times, where n is number of units in UG1 group.

Edit:
Also,
The picked unit of the second group refers to the first group
No it does not. Just tested it and it works as intended.
 
Level 12
Joined
May 22, 2015
Messages
1,051
What other functions are you using? Please show everything you have.
 
Level 25
Joined
Sep 26, 2009
Messages
2,381
There's never a random chance for some command to do something lol. If it does something you're not expecting it to do, there's either an error in your code or it has some logical reason for behaving like that.
 
Status
Not open for further replies.
Top