Quantcast
Channel: Civilization Fanatics' Forums
Viewing all articles
Browse latest Browse all 12856

Kill city

$
0
0
In a mod I'm working on, there's a function that has multiple actions in it, one of which is to destroy a city at a fixed coordinate. When I run the mod, all other code of the function works well except the code to destroy the city.
This is the code I have:
Quote:

local plot = Map.GetPlot( 65, 43 );
local city = plot:GetPlotCity();
city:Kill();
What am I doing wrong?

Viewing all articles
Browse latest Browse all 12856

Trending Articles