Deconstruct entities from another force?

Place to get help with not working mods / modding interface.
pulsereaction
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Sep 21, 2020 12:19 am
Contact:

Deconstruct entities from another force?

Post by pulsereaction »

Hey friendos, I've looked through the force API and couldn't find anything related to this. Is there a way to set one force to be able to have its entities marked for deconstruction by another one?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Deconstruct entities from another force?

Post by darkfrei »

pulsereaction wrote: Mon Sep 21, 2020 12:21 am Hey friendos, I've looked through the force API and couldn't find anything related to this. Is there a way to set one force to be able to have its entities marked for deconstruction by another one?
You can make your own selection tool and via the script change the force for all selected entities, than set as marked to deconstruction.

Or don't change the force.

Or drop the loot from destroyed entity.
https://mods.factorio.com/mod/LootingRemnants
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5290
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Deconstruct entities from another force?

Post by Klonan »

Unfortunately entity deconstruction only works with the same force or neutral force.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Deconstruct entities from another force?

Post by Bilka »

Klonan wrote: Mon Sep 21, 2020 9:36 am Unfortunately entity deconstruction only works with the same force or neutral force.
*only works with the same force or entities without force. You can't deconstruct e.g. a neutral force transport-belt either.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Modding help”