How to add/delete cities via lua?

ww2commander

Emperor
Joined
Aug 23, 2003
Messages
1,243
Location
Australia
Anyone successfully add or delete a city using lua yet?

I attempted some tests using the info @Gedemon compiled in his lua objects spreadsheet, but no luck.

Players:GetCities():Create() and Destroy() seems to do nothing. I am assuming these are probably not working yet as I have not found any reference to them in other game scripts.
 
Players[0]:GetCities():Create(x,y)

Must be called from a script context.
 
Thanks. Seems to work now.

It wont work via Firetuner where I do a lot of testing.

The whole context thing is a pain compared to civ5 where things 'just' worked via Firetuner
 
Top Bottom