• 🏆 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] [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