View Full Version : REQUEST: aircraft automation


mattpilot
Mar 13, 2006, 07:16 PM
Would it be possible to create a function/whatever that allows for fighter/bomber aircraft to be automated?

Civ3 had an automate option that let you bomb the same target overandoverandover again with one command.

What i'm really interested in is a RECON automation - each turn the same airplane recons the same square.

I'm using fighters as an early warning system off of my coast - I'm trying to spot transports with lots of troops on them BEFORE the soon-to-be enemy gets to close to my shore and declares war.

The only problem is, it really sucks sending 10 planes on recon missions each turn.

So... is there a potential solution? Something like, while i Hold ALT + RECON button, the game repeats this action until interrupted.

mrgenie
Mar 14, 2006, 02:32 AM
YES!!!! you hit us here with the right question..I would like to know generally how to automate things with units..not only recon of planes, but also recon of units general, like submarines , how can I let them patrol the same area each turn without doing it manually? i.e. set a route on the map which they must drive all the time..with planes I'm limited to my own area somehow, or need to make alliances to use others bases/cities..but I would like to dominate the seas, and it'll be very handy if I had a stack of 20subs which I could order to follow 5different patrol routes automatically..so I can see when enemy naval forces come into area and just send my main naval force there to destroy them...in earlier ages of the game it would be handy to automate recon-units to follow several paths to check on enemy encounters.. how do we do that??

mattpilot
Mar 14, 2006, 04:15 PM
If no one is interested in making such a mod, could someone point me to the python files where one finds automation?


Basically whats needed is a script/function that runs at endTurnReady (or before the end of the turn when the computer runs all automated workers) that matches unit ID with unit action ..... dictionary? Key = unit ID; key.value = selected plot.

Then i suppose a script/function is needed that can be accessed via aircraft that stores that unit ID and the selected plot to which one does recon too in the dictionary.

Would something like that work or am i totally off?