• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

units walking to a point but attacking

Status
Not open for further replies.

007

007

Level 6
Joined
May 3, 2009
Messages
175
hi. how can i make, that the computers units walk from one point to another, but attack if an enemy comes naer them and if he walks away or dies they go on to walk to this point? (like a td with the blocking)
 
Level 7
Joined
Jul 20, 2009
Messages
295
  • Create Unit
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • ====This is the action which makes the unit to move and if units are near, it attacks====
      • Unit - Order (Last created unit) to Attack-Move To (Center of (Playable map area))
      • ======================================================
[Edit] - Off-Topic:
Oh god, Pharaoh, you always be the first to post than I do..
 
Status
Not open for further replies.
Top