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

How to disable attack priority for computer player with disabled AI?

Status
Not open for further replies.
Level 7
Joined
May 10, 2024
Messages
118
I'm working on custom AI for computer player and found that even with disabled melee AI his units change targets in combat.

1. I'm adding Player 1 (it's me) units to unit group and order that to group to attack move to position.
2. I'm adding Player 2 (it's computer with disabled melee AI) units to unit group and order that to group to attack move to position.
3. When combat begins Player 2 units constantly change targets while Player 1 units stick to the first target they attacked. Looks like Player 2 units change their targets if there is a low hp enemy unit nearby.

What is the source of that behavior and how to stop it?
 
Status
Not open for further replies.
Back
Top