Page 1 of 1

LuaTrain kill_count and killed_players be writable

Posted: Tue Jun 29, 2021 10:00 am
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