Hi,
I would like to disable the maintenance of some buildings.
RequiresMaintenance.lua line 89
How can I activate this feature?
I would like to disable the maintenance of some buildings.
RequiresMaintenance.lua line 89
Code:
function RequiresMaintenance:OnModifiableValueChanged(prop)
if prop == "disable_maintenance" then
if self.disable_maintenance >= 1 then --no reenabling for now.
self:DisableMaintenance()
end
end
end