General Tso
Panzer General
I have a question regarding my use of the Python method pushMission that may require some knowledge of the SDK which I do not have.
I am currently using the pushMission method to control the "AI" units in my mod and for the most part it works great. I have the little buggers running around the screen doing all kinds of smart stuff.
However....
I can't find a way to prioritize units so that I can control when a unit moves relative to the rest of the current player's units. For example I would like to ensure that artillery bombards before the infantry units advance to attack, but move after the infantry.
From my testing in Python it appears that the game creates a list of the AI player's units at the beginning of the turn. It then cycles through the list handling each unit until its turn is finished before continuing to the next unit. I need to have the ability to skip the current unit and have it move to the end of the list so that it gets reprocessed after the rest of the units have been given a shot. Basically the same thing that happens when the human player presses the "W" key. Does anyone have any ideas on how to do this?
If not could anyone with some knowledge of the SDK either explain how the SDK handles this unit list or where the code is located, so that I can look at it myself (I understand a little bit about C++)
I am currently using the pushMission method to control the "AI" units in my mod and for the most part it works great. I have the little buggers running around the screen doing all kinds of smart stuff.
However....
I can't find a way to prioritize units so that I can control when a unit moves relative to the rest of the current player's units. For example I would like to ensure that artillery bombards before the infantry units advance to attack, but move after the infantry.
From my testing in Python it appears that the game creates a list of the AI player's units at the beginning of the turn. It then cycles through the list handling each unit until its turn is finished before continuing to the next unit. I need to have the ability to skip the current unit and have it move to the end of the list so that it gets reprocessed after the rest of the units have been given a shot. Basically the same thing that happens when the human player presses the "W" key. Does anyone have any ideas on how to do this?
If not could anyone with some knowledge of the SDK either explain how the SDK handles this unit list or where the code is located, so that I can look at it myself (I understand a little bit about C++)