Help: How can i find the coordinates of a city

tesb

Emperor
Joined
Jan 16, 2010
Messages
1,593
i have a loop that goes over all cities of a player and when a certain condition is met the city increases in population. This works fine, however i wanted to also display an animation when this happens. I know how to get the animation to play, but for this i also need the plot of the city.

my code looks like this:

Code:
if pPlayer.getNumCities() > 0:
   for pyCity in PyPlayer(iPlayer).getCityList():
        pCity = pyCity.GetCy()
        if (CONDITION):
           pCity.changePopulation(1)
           CyEngine().triggerEffect(EFFECT,pPlot.getPoint())

now what would be the best way to get pPlot for the city that increases in population?

many thanks and happy holidays :)
 
Back
Top Bottom