Exclusive "tag" for entity is attachable from Map Editor(/editor).
And accessible via
game.get_entity_by_tag(tag)
https://lua-api.factorio.com/latest/Lua ... ity_by_tag
But I can't find any way to "write tag" via script.
If it's not exist, add it please.
If it's exist, let me know.
Attach tag to entity via scripting
Attach tag to entity via scripting
English is not my native language. Sorry for bad English.
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
My mods :
Lua API global Variable Viewer (mod portal)
Lua API Event Trace (mod portal)
My tools :
Locale String Editor (github.io webapp)
Re: Attach tag to entity via scripting
It specifically doesn't exist because it's O(N) cost to add and or get those tags. They are not meant to be used heavily and or commonly outside of scenarios.
If you want to get ahold of me I'm almost always on Discord.