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

[General] [AI] How to set a tower to prioritize non-Hero units?

Status
Not open for further replies.
Level 4
Joined
Jun 10, 2019
Messages
69
Hi all,

Today I'm working on the beginnings of the computer AI. I have turrets set up around the map, and I would like for them to prioritize attacking minions (non-hero units) over the player hero units.

The other goal, which I think I know how to accomplish, is to make it so that, if a hero damages an enemy hero within the range of an enemy turret, the enemy turret will attack the hero. That shouldn't be too bad, but I'm completely lost with the first bit.

Any help would be greatly appreciated!

Thanks!
 
Status
Not open for further replies.
Top