So in 0.15, this was added: "When dying in multiplayer you leave behind a body with your items that slowly degrades."
I can't find anything in LuaGame / LuaPlayer / LuaForce to configure the time that it takes before the body disappears.
Any help? I'm hoping it's available as a setting for easy configuration.
Change dead body / corpse / gravestone timeout?
Re: Change dead body / corpse / gravestone timeout?
The corpse time is set in the prototype (data) stage
data.raw["character-corpse"]["character-corpse"].time_to_live =
data.raw["character-corpse"]["character-corpse"].time_to_live =
Re: Change dead body / corpse / gravestone timeout?
Dang it... Was hoping it wasn't data. Wanted to modify it in a scenario.
Thanks for the help though!
Thanks for the help though!
Re: Change dead body / corpse / gravestone timeout?
Might be able to do something with on_player_died and remove/reset the corpse time
Re: Change dead body / corpse / gravestone timeout?
Create new chest with look of player, copy loot and delete body.Oarc wrote:Dang it... Was hoping it wasn't data. Wanted to modify it in a scenario.
Thanks for the help though!
- Kostriktor
- Inserter
- Posts: 41
- Joined: Sun Aug 21, 2016 12:58 pm
- Contact:
Re: Change dead body / corpse / gravestone timeout?
i cant find that...Nexela wrote: Thu May 11, 2017 7:22 pm The corpse time is set in the prototype (data) stage
data.raw["character-corpse"]["character-corpse"].time_to_live =
this still works ?
can you give a folder-path ?
Re: Change dead body / corpse / gravestone timeout?
Yes it still works. I don't know why you are searching folders, editing the game files is the wrong way to make mods.
- Kostriktor
- Inserter
- Posts: 41
- Joined: Sun Aug 21, 2016 12:58 pm
- Contact:
Re: Change dead body / corpse / gravestone timeout?
i hoped that would work by editing some config.
too bad
too bad