Geekob
Chieftain
- Joined
- Apr 30, 2017
- Messages
- 20
I found some useful functions in worldbuilder lua files but it seems im not able to use them. Its kind of weird since I can run those commands in runtime through firetuner. Lua doesnt throw any error, it just doesnt execute them. Im using ImprovementBuilder also, and it works even outside debug environment. I want to add plot to city, so it can be workable so I used
but lua just ignores it. Is there any way to make it working? Or does anyone know any alternative function for setting plot to be owned by some city?
Code:
WorldBuilder.CityManager():SetPlotOwner(plot, city);