Page 1 of 1

Change dead body / corpse / gravestone timeout?

Posted: Thu May 11, 2017 4:51 pm
by Oarc
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.

Re: Change dead body / corpse / gravestone timeout?

Posted: Thu May 11, 2017 7:22 pm
by Nexela
The corpse time is set in the prototype (data) stage
data.raw["character-corpse"]["character-corpse"].time_to_live =

Re: Change dead body / corpse / gravestone timeout?

Posted: Thu May 11, 2017 9:17 pm
by Oarc
Dang it... Was hoping it wasn't data. Wanted to modify it in a scenario.

Thanks for the help though!

Re: Change dead body / corpse / gravestone timeout?

Posted: Thu May 11, 2017 9:18 pm
by Nexela
Might be able to do something with on_player_died and remove/reset the corpse time

Re: Change dead body / corpse / gravestone timeout?

Posted: Fri May 12, 2017 10:32 am
by darkfrei
Oarc wrote:Dang it... Was hoping it wasn't data. Wanted to modify it in a scenario.

Thanks for the help though!
Create new chest with look of player, copy loot and delete body.

Re: Change dead body / corpse / gravestone timeout?

Posted: Sat Dec 21, 2019 2:51 am
by Kostriktor
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 =
i cant find that...
this still works ?
can you give a folder-path ?

Re: Change dead body / corpse / gravestone timeout?

Posted: Sat Dec 21, 2019 3:08 am
by DaveMcW
Yes it still works. I don't know why you are searching folders, editing the game files is the wrong way to make mods.

Re: Change dead body / corpse / gravestone timeout?

Posted: Sat Dec 21, 2019 4:01 am
by Kostriktor
i hoped that would work by editing some config.
too bad