What?
Read access to the unit number of the entity contained in an entity-ghost.
Why?
I need to keep lua-side data for my entities, which is indexed by unit_number, and needs to be consistent if an entity is killed and then rebuilt.
LuaEntity.ghost_unit_number
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
LuaEntity.ghost_unit_number
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: LuaEntity.ghost_unit_number
Okay, added for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.