I'm trying to find a quick and ideally simple way to determine if an entity (regardless of type) is something "electrical".
That would include energy sources, stores and consumers (and anything else I've not thought about).
There are numerous properties on LuaEntity but they all seem limited to "electric energy source" (I assume something like a Steam engine?) or "ElectricEnergyInterface" (which I think is something to do with accumulators?).
Any ideas?
For bonus points: Also a quick way to determine if the entity is currently "live" (generating power, has stored power, or is supplied with power).
Quick way to determine if entity is electrical?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Quick way to determine if entity is electrical?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.