Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /c
  2. local disable_list = {"pipe", "pipe-to-ground", "offshore-pump", "heat-exchanger", "steam-turbine", "heat-pipe"}
  3. local nuclear_area = {left_top = {-1016, -596}, right_bottom = {-899, -474}}
  4. local surface = game.player.surface
  5. for _, name in pairs(disable_list) do
  6. for _, entity in pairs(surface.find_entities_filtered{area=nuclear_area, name=name}) do
  7. entity.active = false
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement