How to make units attack any unit in a region?

NightMagi

Member
Reaction score
5
How to make units attack any unit in a region?

I need Player 12 units to attack any unit that is:
A hero
An Ally of player 1 (red)

in a region

what triggers i must use for this? :p
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Aren't they doing this anyway if some enemy gets near?
If you ordered them to move around, change the order from "move" to "attack-move".
 

NightMagi

Member
Reaction score
5
i need them to attack ANY enemy hero who is in the arena.
If someone hides his hero behind barricades or somwhere else in the arena and tries to hide from the creeps, the creeps automaticaly attack them without needing a enemy getting close to them.
 

HydraRancher

Truth begins in lies
Reaction score
197
an if trigger?
every 20 seconds
set temp group = region matching (matching unit belongs to an ally of player 1)
if
number of units in temp group is equal to or bigger than 1
pick every unit in playable map area matching (matching unit belongs to neutral hostile)issue order order picked unit to attack random unit in temp group
or
every 0.2 seconds
order unit to attack move (smart I think) to position of random unit in temp group with offset 20, 20
this way the hunting is faster and creeps dont stand there randomly
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top