That is exactly what I’ve done. I have a Commanding class (in my case “AI brain”) which take care of the moving the different units around. The units are grouped into squads with one leader unit.
“Tactical point” is just my name for an actor which gives a location and some information to the AI Brain (Currently just a location).
So the scenario is as follows.
- The Ai brain detects all squads it has under it’s command and all tactical points.
- The Ai give a command to the Leader of each squad to go to the closest tactical point. This tactical point becomes claimed until any unit of the squad reaches it.
- When a unit of the claiming squad reaches the tactical point, the point get a 5 min coldown before it gets unclaimed. The AI brain gets an event to give a new command to the squad to move to the next unclaimed tactical point that is closest to the squad leader.
- And so it loops at the moment.
And this works fine with 6 squads for the four first tactical points they move to. But all 6 squads fail as soon as they reach this row of tactical points. And as the screen shot show, there is a squad stadning in their claimed tactical point, but for some reason they don’t seem to try to claim the next set. None of them. And all previous tactical points are taged as claimed and won’t be considered as locations fora new move command.