Page 1 of 1

Cancel deconstructing

Posted: Sun Mar 05, 2017 3:47 pm
by darkfrei
Hi! How to set all entities marked to deconstructing not more to deconstructing?

Re: Cancel deconstructing

Posted: Sun Mar 05, 2017 4:04 pm
by Klonan
Something like this:

Code: Select all

for k, v in pairs (game.player.surface.find_entities()) do
  v.cancel_deconstruction(game.player.force)
end