Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /c
- local disable_list = {"pipe", "pipe-to-ground", "offshore-pump", "heat-exchanger", "steam-turbine", "heat-pipe"}
- local nuclear_area = {left_top = {-1016, -596}, right_bottom = {-899, -474}}
- local surface = game.player.surface
- for _, name in pairs(disable_list) do
- for _, entity in pairs(surface.find_entities_filtered{area=nuclear_area, name=name}) do
- entity.active = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement