• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] How do neutral hostile units choose their target

Status
Not open for further replies.
Level 3
Joined
Mar 31, 2015
Messages
28
I am not sure I'm posting this in the right forum, but here it goes:

How do neutral hostile units (aka creeps), or, for that matter, computer-controlled player units choose their attack target if surrounded by more than one enemy?

Do they check armor, level, type (building, unit, Hero, ward etc.), distance, current lunar phase, or something else? Or everything combined?

This question is so general, and almost certainly has been asked before, however, I can't find any such thread.

I did find this thread explaining how creeps choose their spell targets, though.
 
Level 4
Joined
Sep 13, 2014
Messages
106
There are lots of factors that influence this. For example, if one of your units is attacking one of your own units, your unit will be deprioritized compared to other units that are attacking the computer controlled unit.
 
Level 12
Joined
Nov 3, 2013
Messages
989
And they will chase your heroes to the end of the world if they don't have a creep return distance.

Personally I'd like to know a way to completely remove their behaviour.
 
Status
Not open for further replies.
Top