Project Zomboid

Project Zomboid

Wells Construction
How do I place the well anywhere?
How do I modify the mod code to do it?
< >
Showing 1-5 of 5 comments
Marshmallow 30 Apr, 2024 @ 2:41pm 
Wanting this as well. I built my base in the city, so I just don't get to use this feature? I understand the logic, it's just kind of annoying.
Koniv00 24 May, 2024 @ 7:33am 
Here's what you need to do, but it will probably get overwritten the next time the mod updates:

Find steamapps\workshop\content\108600\2852690210\mods\WellsConstruction\media\lua\server

In this directory there should be a file called WellObject.lua, which you need to edit,
Find the section that looks like this (but with the town squareZone as well):

-- Wells should not be able to be placed on roads, towns or trailer parks
function WellObject.isValidZone(square)
local squareZone = square:getZoneType();
if squareZone == "Nav" or squareZone == "TrailerPark" then return false; end
return true;
end

Just remove the zone you want to be able to build the well in, and you're good to go.
Okay thx
Sr_Guarrior 6 Jul, 2024 @ 10:42pm 
gracias, me sirvió editar el archivo
Originally posted by Koniv00:
Here's what you need to do, but it will probably get overwritten the next time the mod updates:

Find steamapps\workshop\content\108600\2852690210\mods\WellsConstruction\media\lua\server

In this directory there should be a file called WellObject.lua, which you need to edit,
Find the section that looks like this (but with the town squareZone as well):

-- Wells should not be able to be placed on roads, towns or trailer parks
function WellObject.isValidZone(square)
local squareZone = square:getZoneType();
if squareZone == "Nav" or squareZone == "TrailerPark" then return false; end
return true;
end

Just remove the zone you want to be able to build the well in, and you're good to go.

how i build inside house?, cand find the code line
< >
Showing 1-5 of 5 comments
Per page: 1530 50