Page 1 of 1

Disable Technology?...

Posted: Fri May 22, 2020 2:17 pm
by PanTobi
Hey another Question ^_^...

In Labolatory i build, almost all Gates have Code Locks,
so in order to enter room You need to
1- Guess Code
or
2- Find Control Panel where you can find correct Codes


or, theres is 3 way, just research combinators and remove wires from Gates with Your own wires...
i want to remove this way...

is there any way to disable Technology i dont want to give to player?...
or is there any way to disable Wire editing?...

Not operatable is not working:
Img
Wall is in Neutral Team

Re: Disable Technology?...

Posted: Fri May 22, 2020 3:11 pm
by darkfrei
PanTobi wrote: Fri May 22, 2020 2:17 pm is there any way to disable Technology i dont want to give to player?...
or is there any way to disable Wire editing?...
https://lua-api.factorio.com/latest/Lua ... chnologies #LuaForce.technologies

https://lua-api.factorio.com/latest/Lua ... researched #LuaTechnology.researched
https://lua-api.factorio.com/latest/Lua ... gy.enabled #LuaTechnology.enabled
https://lua-api.factorio.com/latest/Lua ... n_disabled #LuaTechnology.visible_when_disabled

Code: Select all

/c 
local technology= game.player.force.technologies["steel-processing"]
technology.researched = false
technology.enabled= false
technology.visible_when_disabled = false

Re: Disable Technology?...

Posted: Fri May 22, 2020 3:15 pm
by PanTobi
Thank You again ^_^...
Now they can't break my Gates :3... hy hy...