• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

DELETE BACKPACK on death

MrSamuelAdams

New member
I love the delete all setting, but sometimes it's a bit extreme. How can I go about making a mod to delete backpack on death but KEEP your toolbelt on death. 

Thank you! 

 
That setting drops backpack on death.  I believe OP wants tool belt to stay but everything in backpack gets deleted

 
Ah, I misread. I think you could make a game event that removes items from the backpack on death easy enough. Maybe something like:

<action_sequence name="clear_backpack">
<property name="action_type" value="Game" />

<action class="RemoveItems">
<property name="items_location" value="Backpack" />
</action>

</action_sequence>


Just add a small effect_group to something like buffStatusCheck01 with a CallGameEvent trigger when you die. Totally untested but seems like it should work.

 
Last edited by a moderator:
Ah, I misread. I think you could make a game event that removes items from the backpack on death easy enough. Maybe something like:

<action_sequence name="clear_backpack">
<property name="action_type" value="Game" />

<action class="RemoveItems">
<property name="items_location" value="Backpack" />
</action>

</action_sequence>


Just add a small effect_group to something like buffStatusCheck01 with a CallGameEvent trigger when you die. Totally untested but seems like it should work.
Yeah, so i'm newer to trying to mod. Is something like you made I could make as a XML config and just place into the mods folder? Sorry for the noob question. 😕

 
Yeah, so i'm newer to trying to mod. Is something like you made I could make as a XML config and just place into the mods folder? Sorry for the noob question. 😕
Yes, though you need to use xpath for it to change the code.  Append would work in this situation 

 
Back
Top