[SOLVED] command to remove every belt from a map?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

[SOLVED] command to remove every belt from a map?

Post by impetus maximus »

is there a console command i could use to remove all the belts from a map?
Last edited by impetus maximus on Sun Sep 03, 2017 12:58 pm, edited 1 time in total.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: command to remove every belt from a map?

Post by Nexela »

/c for _, belt in pairs(game.player.surface.find_entities_filtered{type = "transport-belt"}) do belt.destroy() end
User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: command to remove every belt from a map?

Post by impetus maximus »

wow you are fast. many thanks. :)
Post Reply

Return to “Gameplay Help”