If one uses: (EspionageMissionType eMission, PlayerType eTargetPlayer, CyPlot pPlot, INT iExtraData, CyUnit pUnit) will the game remove the proper amount of EP pts from the player?
Also, can one show me one example of how to use such a command?
I tried using something like:
There's a typeError:this constructor takes no argument. So, with my meager python knowledge I don't know how to make it work.
Thanks for any help.
Also, can one show me one example of how to use such a command?
I tried using something like:
Spoiler :
for pUnit in apUnitList:
if pUnit.getUnitCombatType() == gc.getInfoTypeForString('UNITCOMBAT_SPY'):
pPlot = pUnit.plot()
if pPlot.isCity():
pPlayer.doEspionageMission(gc.getInfoTypeForString('ESPIONAGEMISSION_COUNTERESPIONAGE'), gc.getPlayer(pPlot.getOwner()), pPlot, 0, pUnit)
if pUnit.getUnitCombatType() == gc.getInfoTypeForString('UNITCOMBAT_SPY'):
pPlot = pUnit.plot()
if pPlot.isCity():
pPlayer.doEspionageMission(gc.getInfoTypeForString('ESPIONAGEMISSION_COUNTERESPIONAGE'), gc.getPlayer(pPlot.getOwner()), pPlot, 0, pUnit)
There's a typeError:this constructor takes no argument. So, with my meager python knowledge I don't know how to make it work.
Thanks for any help.