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

Is there a way to add the ability to pick up storage containers similar to how you can pick up a forge, chem station and workstation?

dajokaman759

Refugee
I wanna know if its possible to add the ability to be able to pick up the wooden storage/furniture, gun safe and the secure storage chests like how you can pick up other stations when placed in a land claim block radius?

I wanted to try doing it myself but im pretty sure I didn't do this method right to add an attribute that aren't on the boxes by default. Heres the example I attempted to do to be able to pick up the storage box.

blocks.xml

Code:
<configs>

<setattribute xpath="/blocks/block[@name='cntStorageGenericInsecure']/property[@name='TakeDelay']/@value">5</setattribute>

</configs>
 
Some things may be hardcoded in the game code, so you may be unable to set them the way you want through xml, keep that in mind. Not sure if that's the case here, but if it is, it may be impossible to achieve what you want here. I'm a bit skeptical about this TakeDelay thing, that probably only sets how long it will take to pick it up, but not the ability to be picked up in the first place (again that might be hardcoded depending on what kind of item it actually is).

If you still want to try, you can go ahead and test it, but instead of setting the attribute (which isn't there in the first place, so this would result in error), you will need to insert it inside of its node as a new property. Also, I would probably try cntStorageGeneric first, because Insecure version is the one that's half destroyed.

 
I've tried multiple ways to get it to work in A19 and also asked on the forum. Sadly it seems that TakeDelay is hardcoded. And if a dev is reading this, a global option to allow for pickup with a timedelay in single player without the need for landclaim would be great.

 
Back
Top