I'd like segmented units and their segments to be easily related to each other.
right now as a work around you can find entities filtered and then use unit_number to relate them since it seems like they are consecutive starting from the head. But this seems brittle, which is worrisome. It's also probably less performant than just having some api relationship like segments/segmented_unit.
Segmented Unit entity relationship
-
- Factorio Staff
- Posts: 217
- Joined: Fri Dec 07, 2018 3:41 pm
- Contact:
Re: Segmented Unit entity relationship
A proper API for segmented units is in development, and a simple technique for correlating segments and segmented units together is included.
Re: Segmented Unit entity relationship
I'm hoping that also comes with ability to read/modify their territory?StrangePan wrote: Sun May 04, 2025 3:37 pm A proper API for segmented units is in development, and a simple technique for correlating segments and segmented units together is included.
-
- Factorio Staff
- Posts: 217
- Joined: Fri Dec 07, 2018 3:41 pm
- Contact:
Re: Segmented Unit entity relationship
Of course!berggen wrote: Tue May 06, 2025 3:47 pm I'm hoping that also comes with ability to read/modify their territory?
Re: Segmented Unit entity relationship
I wasn't expect rw on their territory, that opens up a lot of possibilities!
Could I ask that the behaviour I erroneously called a bug at 126979 be changed so that it's possible to always fire an even upon their removal?
Could I ask that the behaviour I erroneously called a bug at 126979 be changed so that it's possible to always fire an even upon their removal?
Re: Segmented Unit entity relationship
....Hype building for a way to properly implement a Demolisher Zoo by setting a custom Territory! 
