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

Ally System Error?

Status
Not open for further replies.
Level 10
Joined
Apr 22, 2010
Messages
422
Hi, im working on a Ally system where nearby units owned by your ally will come to assist you in fighting an enemy. Once they assist you, they become part of your group, and will follow you around.

Problem is that after i order my new allys to an location, they will run back to where they were originaly....Help!

Heres my trigger:
  • Ally System
    • Events
      • Unit - Orc 0001 <gen> Is issued an order targeting a point
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within 600.00 of (Position of Orc 0001 <gen>) matching ((Owner of (Matching unit)) Equal to Player 3 (Teal))) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to Allys
      • Unit Group - Pick every unit in Allys and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Target point of issued order)
 
Status
Not open for further replies.
Top