Attach tag to entity via scripting

Things that we aren't going to implement
x2605
Inserter
Inserter
Posts: 42
Joined: Fri Jul 31, 2020 4:08 pm
Contact:

Attach tag to entity via scripting

Post by x2605 »

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.
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)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14590
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Attach tag to entity via scripting

Post by Rseding91 »

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

Return to “Won't implement”