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

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