Attack-move to a constant.

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
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?
 
Level 11
Joined
Feb 23, 2009
Messages
577
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 =)!
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
Theres more than 1 region so that wont work.

Yes (guy with infernal avatar) its not exactly zombie but close it.
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
'k nice guessing. What about

"every 0.2 seconds"

"make <unit> attack <hunted>"
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
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)
 
Level 7
Joined
Jul 18, 2009
Messages
272
What do you need the region for? Just let them move/attack to the position of your unit.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
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.
Top