Looping through ALL cities (lua)

turingmachine

Emperor
Joined
May 4, 2008
Messages
1,438
I know I can use "for pCity in Player:Cities() do" to loop through all of the player's cities, but how can I loop through all the cities of all the players at once?
 
loop all players, check if they are alive, then loop all their cities - which is MUCH quicker than looping all the plots on the map and checking for a city
 
Bleh, that was pretty obvious. I don't know why I didn't think of doing that. Thanks! As always, you're a tremendous help whoward69.
 
Back
Top Bottom