[AI] AI retreat

Status
Not open for further replies.

imported_WaRhEaD

I

imported_WaRhEaD

Hi,

My AI retreats a few second after I send a troop of his units with a
Code:
"Unit - Order (Last created unit) to Attack-Move To (Center of Region 001 <gen>)"
order.
I automatically create units for the comp, and send them away to the direction that I want. Unfortunally the AI sends them back to his base and keeps them there...
Can I do something about this, something like stopping the AI from doing this?

Thanx in advance!
 
If it is a computer player slot and you are running an AI script, then you can use Ignore Guard Position on the units so he does not order them back.
 
Newly created units are automatically added to the defense group (around the defense captain). That is why the computer sends all new units to the base, or commands them to return if they get far away from there.

You need to assign the units to the attack group (in the AI script) or reissue the attack order once in a while. In the latter case, I think you need to use also "AI - Ignore Guard Position" on the units that the units wouldn't be heading towards the base every other second and then resuming attacking again.
 
Thanks!

That works too.

What I did in the wait for your good anwsers was to delete the AI start trigger in the melee initialisation... (That worked too for me)
 
Tommi said:
Yeah, sure it works, because then the game doesn't create the captains for that computer player. No defense group -> no returning home.
:D
 
Status
Not open for further replies.
Back
Top