Change dead body / corpse / gravestone timeout?

Place to get help with not working mods / modding interface.
Post Reply
Oarc
Fast Inserter
Fast Inserter
Posts: 100
Joined: Sun Sep 18, 2016 2:04 pm
Contact:

Change dead body / corpse / gravestone timeout?

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

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Change dead body / corpse / gravestone timeout?

Post by Nexela »

The corpse time is set in the prototype (data) stage
data.raw["character-corpse"]["character-corpse"].time_to_live =

Oarc
Fast Inserter
Fast Inserter
Posts: 100
Joined: Sun Sep 18, 2016 2:04 pm
Contact:

Re: Change dead body / corpse / gravestone timeout?

Post by Oarc »

Dang it... Was hoping it wasn't data. Wanted to modify it in a scenario.

Thanks for the help though!

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Change dead body / corpse / gravestone timeout?

Post by Nexela »

Might be able to do something with on_player_died and remove/reset the corpse time

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Change dead body / corpse / gravestone timeout?

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

User avatar
Kostriktor
Inserter
Inserter
Posts: 40
Joined: Sun Aug 21, 2016 12:58 pm
Contact:

Re: Change dead body / corpse / gravestone timeout?

Post 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 ?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Change dead body / corpse / gravestone timeout?

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

User avatar
Kostriktor
Inserter
Inserter
Posts: 40
Joined: Sun Aug 21, 2016 12:58 pm
Contact:

Re: Change dead body / corpse / gravestone timeout?

Post by Kostriktor »

i hoped that would work by editing some config.
too bad

Post Reply

Return to “Modding help”