Disable Technology?...

Place to get help with not working mods / modding interface.
Post Reply
PanTobi
Fast Inserter
Fast Inserter
Posts: 202
Joined: Fri Feb 05, 2016 12:34 am
Contact:

Disable Technology?...

Post 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

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Disable Technology?...

Post 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

PanTobi
Fast Inserter
Fast Inserter
Posts: 202
Joined: Fri Feb 05, 2016 12:34 am
Contact:

Re: Disable Technology?...

Post by PanTobi »

Thank You again ^_^...
Now they can't break my Gates :3... hy hy...

Post Reply

Return to “Modding help”