Evil Mass cancel
Evil Mass cancel
How can I mass cancel deconstruction commands for objects marked for deconstructrion by assholes joining the public server?
Re: Evil Mass cancel
the same way you would mark things for deconstruction, except you hold shift.
Re: Evil Mass cancel
yes he asked for a command that clears all the marks in one blow on the whole map.
im sorry i have no clue
im sorry i have no clue
- Ranakastrasz
- Smart Inserter
- Posts: 2174
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Evil Mass cancel
Well, Looking at the API, "cancel_deconstruction(force)" for an entity is clearly the way to go. You need to select all entities effected, and apply it. Not sure how to do that part. Not good with command scripts myself.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Evil Mass cancel
Prepare for some potential lag while it runs
/c for _, entity in pairs(game.player.surface.find_entities()) do entity.cancel_deconstruction(game.player.force) end
/c for _, entity in pairs(game.player.surface.find_entities()) do entity.cancel_deconstruction(game.player.force) end
Re: Evil Mass cancel
Thanks, all your replies are really useful.