OrionVeteran
Deity
I'd like to automate the recon mission for an air unit, without having to push the recon button on every turn. Why? Because I'm lazy and want to speed up my turns.
Goal: Auto repeat air recon mission to specified plot, until mission is cancelled.
Problem: How can I make an air unit auto repeat a recon mission to the same specified plot on every turn?
Where should this function be executed from?
unfinished code:
Any ideas would be greatly appreciated.
Sincerely,
Goal: Auto repeat air recon mission to specified plot, until mission is cancelled.
Problem: How can I make an air unit auto repeat a recon mission to the same specified plot on every turn?
Where should this function be executed from?
unfinished code:
Code:
def doReconMission(pUnit, destinationPlot):
if pUnit.canRecon(pUnit.plot()):
pUnit.getGroup().pushMission(MissionTypes.MISSION_RECON, destinationPlot.getX(), destination.getY(), 0, False, True, MissionAITypes.NO_MISSIONAI, pUnit.plot(), pUnit)
Any ideas would be greatly appreciated.
Sincerely,