Project Zomboid

Project Zomboid

Unbreakable Metal Fences + Gates! (Build 41+)
dtoxic 25 Dec, 2022 @ 4:31pm
Question
Did something change? i built High wired fence and it's destructible

i do use some other mods,so maybe it;s a compatibility issue?

Improved Build Menu [Build 41.51+] (basic)
LeGourmetRevolution

could you please check?
< >
Showing 1-5 of 5 comments
oscarpgodspear 15 Jan, 2023 @ 10:46am 
Checked, they are no compatible, you need to disable Improved Build and this mod will work, the good news is that once you build the door or the fence they stay unthumpable when you enable the Improved Build mod again.
dtoxic 15 Jan, 2023 @ 12:47pm 
ok thx for the info
76561198392776101 11 Feb, 2023 @ 9:18pm 
Can you add a setting where at some point the fence WILL break towards a certain amount of zombies? Like it can handle like 1 or maybe even 10 but it will eventually break when the entirety of the united ♥♥♥♥♥♥♥ states is surrounding your house's fence-line
cort.x 5 Jan, 2024 @ 1:54pm 
I tried in a brand new save with only 3 mods but it doesnt work. I fix the more built code as you explain and I subcribe the mod but those fences are still breakable.

Here is the code, does it ok to you ?

function ISHighMetalFence:addPart(x, y, z, north, sprite)
local cell = getWorld():getCell()
if not north then
sq = cell:getGridSquare(x, y + 1, z)
else
sq = cell:getGridSquare(x + 1, y - 1, z)
end

self.javaObject = IsoThumpable.new(cell, sq, sprite, north, self)

self.javaObject:setThumpSound("ZombieThumpMetal")
self.javaObject:setIsThumpable(false)
sq:AddSpecialObject(self.javaObject)
self.javaObject:transmitCompleteItemToServer()
end
cort.x 6 Jan, 2024 @ 10:48am 
Originally posted by cort.x:
I tried in a brand new save with only 3 mods but it doesnt work. I fix the more built code as you explain and I subcribe the mod but those fences are still breakable.

Here is the code, does it ok to you ?

function ISHighMetalFence:addPart(x, y, z, north, sprite)
local cell = getWorld():getCell()
if not north then
sq = cell:getGridSquare(x, y + 1, z)
else
sq = cell:getGridSquare(x + 1, y - 1, z)
end

self.javaObject = IsoThumpable.new(cell, sq, sprite, north, self)

self.javaObject:setThumpSound("ZombieThumpMetal")
self.javaObject:setIsThumpable(false)
sq:AddSpecialObject(self.javaObject)
self.javaObject:transmitCompleteItemToServer()
end
I tried different way and it works by putting "more built" at the mod load order bottom
< >
Showing 1-5 of 5 comments
Per page: 1530 50