Ok this is an extremely complicated and weird question so I’m gonna put it here because I want to know how I script it Say you have 2 opposing forces. Red and blue. Their goal is to essentially kill eachother yes?
My goal is to get the AI to move up and attack eachother
The AI already attack eachother and move to eachother which is great… But not really
So here’s the issue
If I set every AI to attack the closest unit on the enemy team then It wouldn’t work, as all the AI would get bunched up at the front trying to kill the other enemy AI(edited)
Basically resulting in this
What I wan’t is for the ai to wait for the other AI infront of them to die before they are engaged in combat
So if the front unit dies another takes its place
And the units move up
and it has to be completely dynamic because It could be a scenario like this
So basically, I want it so the unit can’t just barge through other unit’s in order to attack other units
So if anyone could help me with this issue. It would be the biggest help in the world as this issue has got me headaches for days. I’m not asking for code or what exactly to do. I just want to know how I could make the AI think like any rational being would




