LuaEntity.ghost_unit_number

Post Reply
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

LuaEntity.ghost_unit_number

Post by eradicator »

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.
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.

Bilka
Factorio Staff
Factorio Staff
Posts: 3139
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaEntity.ghost_unit_number

Post by Bilka »

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.

Post Reply

Return to “Implemented mod requests”