The code above doesn't work. Any idea how to change it.
And how i can name the unit by python?
And how i can name the unit by python?
def onGameStart(self, argsList): if (gc.getGame().getGameTurnYear() == gc.getDefineINT("START_YEAR")): for iPlayer in range(gc.getMAX_PLAYERS()): pPlayer = gc.getPlayer(iPlayer) for iGroup in range(pPlayer.getNumSelectionGroups()): gGroup = pPlayer.getSelectionGroup(iGroup) gGroup.pushMission(gc.getDefineINT("MISSION_FORTIFY", 0, 0, 0, false, false, -1, gGroup.plot(), gGroup.getHeadUnit())
Comment