Hello
Is it generally possible to implement some (basic) AI logic as UI mod?
The mod should be be able to:
- Issue its own move/attack/assist commands to units
- Build structures and units on its own
- Recognize enemy targets (including radar marks) to attack or defend from
- Recognize allied targets to assist
So far, reading existing mods source code I have found some useful hints on the next features:
1. How to enumerate own units
2. How to command a structure to start upgrading
3. How to add a unit into a factory build queue
4. How to issue move commands (very limited information)
But other important topics remain unclean.
So, can anyone here explain (better of all - point to clear example of) how to accomplish the next things with UI modding?
1. Command an engineer to build an arbitrary structure at an arbitrary map location (for example, near a closest mex)
2. Issue a move / assist / attack / reclaim command to a unit with an arbitrary target
3. Enumerate allied units and structures (including the ones being under construction)
4. Enumerate known enemy units and structures, including radar marks (!)
5. Set rally point for a factory (including setting it as aggressive move target)