Mark objects for Deconstruction

Post Reply
User avatar
N3X15
Inserter
Inserter
Posts: 24
Joined: Sat Oct 26, 2013 11:44 pm
Contact:

Mark objects for Deconstruction

Post by N3X15 »

It would be highly useful to have a way for Lua to mark an object for deconstruction, similar to the Deconstruction Planner.

Use Cases:
  • Automated harvesting of trees/crops (such as with a mod I am working on)
  • Automated building removal (automated expansion?)
  • Cancel deconstruction
Proposed interface:
entity.deconstruct(on=True)
  • on: Whether the entity should set or unset deconstruction flag.
entity.deconstructing = False
True if object is waiting for deconstruction.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Mark objects for Deconstruction

Post by kovarex »

It is done for 0.9.4, although little bit differently.

Post Reply

Return to “Implemented mod requests”