• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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