HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Object Editor -Status: Priority?

07-14-2004, 11:38 AM#1
nightterror
Anyone know what the priority field does in the Units section of the Object Editor?
07-14-2004, 11:57 AM#2
High Incarnate
I think its the prority in which enemy units will attack. eg
A grunt and a raider enter a units LOS at same time, one has the higher prority will be attacked first.
07-14-2004, 02:06 PM#3
|)@rk-Revenant
It also is a bit randomised when you go into large battles.
07-14-2004, 02:39 PM#4
nightterror
So if I set a towers priority to 1 then that should take priority over units? By looking in the world editor right now - A tower guard tower has a priority of two and a unit footmen has a priority of 6. So the guard tower takes priority over the unit or vice versa.
07-14-2004, 03:01 PM#5
th15
It has nothing to do with how the AI decides to attack.

It controls the order that the unit appears in the unit list (at the bottom middle of your interface). The lower the number, the close to the front (top left).

You will notice that heroes typically have a lower priority than regular units. This makes them appear first when selected as part of a group.
07-14-2004, 03:23 PM#6
nightterror
Well thanks for clearing that up. Anyway to make a unit have priority over another in attack order?
07-14-2004, 03:34 PM#7
th15
The AI picks targets by first checking if the target unit has an attack, that way units without attacks and workers are ignored. After that, it mostly just checks for distance, if two units are the same distance then I think it decides based on damage/armour types.

I could be wrong though, the AI/JASS people would know better.