Tryhard Trevor
Chieftain
- Joined
- Feb 29, 2016
- Messages
- 22
Currently working on a custom Civ. I'm trying to setup some Lua. My end goal is to make it to where when a Great Engineer is expended building a Manufactory, it will provided some production to the nearest city. In order to do this, I'm using the GameEvents.UnitPrekill.Add hook, and when the unit is deleted I get the units plot. When I have the plot, I use the GetPlotCity() method to return the city, however, this method is always returning NIL. Am I using it incorrectly? Is there a better way I could accomplish this goal?