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

how to make containers self destroy after looting?

unlike them

New member
I want to make birdnests and trash bags self destroy on close, is it possible? I cannot find any such property on other containers.

 
i am not sure if it works with everything, but look at loot container 34, which is right below the birds nest. This is the air drop container and it destroys.

I think the code you need is

Code:
destroy_on_close="true"
 
<lootcontainer id="111" count="1" size="8,4" destroy_on_close="true" sound_open="UseActions/open_cardboard" sound_close="UseActions/close_cardboard" loot_quality_template="baseTemplate">

<item group="NewPlayerAll"/>

</lootcontainer>

Here you go

- - - Updated - - -

i am not sure if it works with everything, but look at loot container 34, which is right below the birds nest. This is the air drop container and it destroys.I think the code you need is

Code:
destroy_on_close="true"
we were replying right about the same time lol sorry :D

 
I just learned to do Xpaths mod, I don’t know if this is right.

I want to make it into an Xpaths mod

<configs>

<append xpath="/lootcontainers/lootprobtemplates/lootcontainer[@id=10]"><spectrum destroy_on_close="true"/></append>

<append xpath="/lootcontainers/lootprobtemplates/lootcontainer[@id=25]"><spectrum destroy_on_close="true"/></append>

</configs>

 
Has this been confirmed it works? I play dead is dead and always destroy nests and trash after looting with no future loot respawning as it helps me remember where I have been.

 
Garbage dump and nest, the container will disappear after searching

<?xml version="1.0" encoding="utf-8"?>

<configs>

<remove xpath="/lootcontainers/lootcontainer[@id=10]" />

<remove xpath="/lootcontainers/lootcontainer[@id=25]" />

<append xpath="/lootcontainers">

<lootcontainer id="10" count="0,2" size="5,3" destroy_on_close="true" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">

<item group="junk"/>

</lootcontainer>

<lootcontainer id="25" count="1,3" size="4,3" destroy_on_close="true" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="baseTemplate">

<item name="foodEgg" count="1" prob="0.25"/>

<item name="resourceFeather" count="4,8" prob="0.75"/>

</lootcontainer>

</append>

</configs>

 
Back
Top