HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Computer player AI

02-13-2003, 06:13 PM#1
BoddoZerg
Something I noticed about AI in Warcraft III:

If you set a player to "Computer" and give him units, he will automatically micromanage his units, even without telling him to run an AI script. If enemies come within range, he will attack, and he will cast spells, use focus-fire, etc. He'll even retreat his units if he thinks the enemies are stronger than him.

How do I prevent the computer player from doing all this? I want to have more control over the computer player's units, but I don't want to set him to Neutral because neutral players can't share vision with human players.
02-14-2003, 03:32 AM#2
FyreDaug
I have run into the same problem and I tried using triggers

If a unit owned by computer is issued an order targeting a unit then order the triggering unit to stop

It worked for me, but it got kinda laggy and I ended up ditching the whole thing, maybe it was just conflicting with other periodical triggers, I donno, try it for yourself.
02-14-2003, 01:57 PM#3
BoddoZerg
Ick. Giving orders is about the laggiest possible way to do it. =(