• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Ally System Error?

Status
Not open for further replies.
Level 10
Joined
Apr 22, 2010
Messages
421
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