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

[Solved] Unit in region

Status
Not open for further replies.
Level 10
Joined
Jun 20, 2017
Messages
336
Any ideas + Rep

How to find the unit in the area with command?
  • Worker
    • Events
      • Player - Player 1 (Red) types a chat message containing -w as A substring
      • Player - Player 2 (Blue) types a chat message containing -w as A substring
      • Player - Player 3 (Teal) types a chat message containing -w as A substring
      • Player - Player 4 (Purple) types a chat message containing -w as A substring
      • Player - Player 5 (Yellow) types a chat message containing -w as A substring
      • Player - Player 6 (Orange) types a chat message containing -w as A substring
      • Player - Player 7 (Green) types a chat message containing -w as A substring
      • Player - Player 8 (Pink) types a chat message containing -w as A substring
      • Player - Player 9 (Gray) types a chat message containing -w as A substring
      • Player - Player 10 (Light Blue) types a chat message containing -w as A substring
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to (==) Worker
            • Then - Actions
              • Camera - Pan camera for (Picked player) to (Position of (Picked unit)) over 0.00 seconds
            • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top