How to make buildings invincible and prevent new structures?

Place to get help with not working mods / modding interface.
User avatar
Versepelles
Long Handed Inserter
Long Handed Inserter
Posts: 70
Joined: Sat May 28, 2016 1:42 pm
Contact:

How to make buildings invincible and prevent new structures?

Post by Versepelles »

1) Is there a way to make buildings invincible to both players and aliens? If so, how?

2) Is there a way to prevent players from building in certain areas, while allowing buildings to exist and operate normally in that area (think npc buildings)?
User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 254
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: How to make buildings invincible and prevent new structures?

Post by DedlySpyder »

1) http://lua-api.factorio.com/0.13.8/LuaE ... structible (also see minable below it)

2) I think the only way is to check when a player or robot places something, and see if it is within your no building area
Post Reply

Return to “Modding help”