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

[Trigger] Need help

Status
Not open for further replies.
Yeah, kanadaj gave you the answer. That trigger will pick every unit in the playable map area that belongs to the same player and will follow the ordered unit:
  • Tr
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • ((Triggering unit) is in AlreadyOrdered) Equal to False
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Custom value of (Matching unit)) Equal to (Custom value of (Triggering unit))) and ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to AlreadyOrdered
          • Unit - Order (Picked unit) to Follow (Triggering unit)
Remove the units from the unit group when you want.
 
Status
Not open for further replies.
Top