OpenRA icon indicating copy to clipboard operation
OpenRA copied to clipboard

AI load and unload cargo solution.

Open dnqbob opened this issue 2 years ago • 2 comments

About IssueOrderToBot and ExternalBotOrdersManager:

The idea is:

  1. When actors with IssueOrderToBot have certain condition, it can use IssueOrderToBot to request bot player to give it an order. (it is not the actors issue the orders, it is always the AI issue the orders)
  2. ExternalBotOrdersManager recieve the request and give it an order by using bot.QueueOrder.

It is a cheap way (compared to search the actors of different traits in world and give orders) to perform control in detail and in time (if not consider order lantency), and very flexible.

In doing so, on the macro scale we use SquadManagerBotModule to form squad and attack, on the micro scale units with IssueOrderToBot send order request to ExternalBotOrdersManager in order to be micro-managed.

dnqbob avatar Sep 15 '23 16:09 dnqbob

I have the same reservations I had in https://github.com/OpenHV/OpenHV/pull/789 but maybe I am wrong.

Mailaender avatar Oct 15 '23 19:10 Mailaender