• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Attack-move to a constant.

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,763
Hey I have a region under a unit that is basically where he is Im ordering some units to attack-move to that region and try to kill the target. Only problem is the target is mobile. Is there a way to order units to attack-move to a constantly moving target?
 
I believe your best bet would be to have:

every 2 sec (game time)

Center region at position of unit

Attack move to region

Tell me if it does it if not I can figure something else.

Btw I always forget to ask for rep but feel free + rep me =)!
 
Theres more than 1 region so that wont work.

Yes (guy with infernal avatar) its not exactly zombie but close it.
 
'k nice guessing. What about

"every 0.2 seconds"

"make <unit> attack <hunted>"
 
The unit might be inside a barrier. So the zombies would be retards and wont attack the barrier and try to get the hunted.
 
Well, set a point in-game
  • Trigger
  • Events
    • Time - Every 3.00 seconds of game-time
  • Conditions
  • Actions
    • Set Point1 = (Position of (your unit))
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (the group you want) and do (Actions)
      • Loop - Actions
        • Unit - Order (Picked unit) to Attack-Move to Point
    • Custom script: call RemoveLocation (udg_Point1)
 
What do you need the region for? Just let them move/attack to the position of your unit.
 
Look ill dumb it down for you guys.

There is 9 different heroes. Every 20 seconds, 12 units for each hero spawns and they go to attack their hero. If i go for the hero, they wont attack the barriers. If they attack the region under him, if i move it, the zombies will attack the old one.
 
Status
Not open for further replies.
Back
Top