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

[Trigger] Aim Someone

Status
Not open for further replies.
Im guessing you would check if the way to the runner is still blocked after destroying the building and issuing target order attack unit (the runner)
 
IIRC, priority has nothing to do with unit's preference to who it attacks, but where that unit-type is in your interface when you more unit-types.
(e.g. in group selection, hero is always selected as first and has the first position, etc.)

Taken from here:

Stats - Priority (Integer)
Defines at what point the unit/building/hero will be attacked when within a group of units/buildings/heroes being attacked. The values entered can range from 0 to 20, with 0 meaning that the unit/building/hero will be attacked last, and 20 meaning that it will be attacked first.
 
Taken from here:

Stats - Priority (Integer)
Defines at what point the unit/building/hero will be attacked when within a group of units/buildings/heroes being attacked. The values entered can range from 0 to 20, with 0 meaning that the unit/building/hero will be attacked last, and 20 meaning that it will be attacked first.

now go and run my test map a few times
 
Melee units will also prefer to attack nearby targets rather than using a priority on certain targets. This is because they must walk to the target which can be considered lost DPS. Range units will generally be more picky with their targets as they will often have many to choose from.

I believe health may also factor in at times but that may only be for AI controlled units.
 
Units with attacks have higher priority than units without. Specifically when attacking.

A common problem is melee units ignoring walls and so being stuck in permanent moving trying to get to attacking units even though the path is blocked by a wall. The solution in this case was to give the walls 1-1 dummy attacks just to raise their priority from passive buildings (farm, blacksmith etc) to tower (Guard Tower etc).
 
Status
Not open for further replies.
Back
Top