It would be nice if spider-vehicle legs could have a unique identifier like .unit_number or .id
Thanks
Add unit_number or other unique id to spider-legs
Re: Add unit_number or other unique id to spider-legs
Unfortunately spider legs are not derived from EntityWithOwner so they cannot have unique id.
Re: Add unit_number or other unique id to spider-legs
As a workaround, you can somewhat misuse https://lua-api.factorio.com/latest/Lua ... _destroyed to obtain a unique ID for entities that don't have a unit number.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Add unit_number or other unique id to spider-legs
With the addition of entity.get_spider_legs(), using leg.name as a unique identifier is good enough, especially since it can be combined with the unit_number of the spider.
Thanks :)
Thanks :)