LuaTrain kill_count and killed_players be writable

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

LuaTrain kill_count and killed_players be writable

Post by Muppet9010 »

It would be helpful if the LuaTrain.kill_count and LuaTrain.killed_players attributes were writable like LuaEntity.kills is.

I have a mod that manipulates trains and this can lead to the "older" train being removed and losing the kills details with it. I would like to be able to cache these details in the mod, do the manipulation and then reapply the cached values back to the new trains.

https://lua-api.factorio.com/latest/Lua ... kill_count

Post Reply

Return to “Modding interface requests”