• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Changing the Loot Container expiration time.

Le Barjack

Refugee
Hi, I am trying to change the expiration delay of the different LootContainers (originally 1200 s).

I added an "entityclasses.xml" to a mod that contains the following line:

<set xpath="/entity_class[starts-with(@name,'EntityLootContainer')]/property[@name='TimeStayAfterDeath']" name="value">1800</set>




When I dump the config, the value of TimeStayAfterDeath is still at 1200 for the different EntityLootContainers.

Can someone point me on what I did wrong?

Thanks

 
1: you're missing the first root node (entity_classes)

2: you're using a setattribute style syntax for the end.

It should be:

<set xpath="/entity_classes/entity_class[starts-with(@name,'EntityLootContainer')]/property[@name='TimeStayAfterDeath']/@value">1800</set>

changed items are in orange.

 
Back
Top