Indestructible Wall


A expensive wall and gate that are indestructible.

Content
4 years ago
0.17 - 0.18
36
Cheats

g [0.0.3] Out of date code causing crashes

4 years ago
(updated 4 years ago)

https://lua-api.factorio.com/latest/events.html#script_raised_built
https://lua-api.factorio.com/latest/events.html#script_raised_revive

Your code:

script.on_event(defines.events.script_raised_built, function(event)
local entity = event.entity or event.created_entity -- Great!
if event.created_entity.name == "indestructible-wall" then -- WHY???

Fix plzkthnx, you're breaking all other mods on the mod portal that make appropriate calls to script_raised_built and script_raised_revive for people who use this mod.

4 years ago

Oh, now i see that PyroFire... Sorry! Hope this new version solves it. Thanks

New response