Container share contents?

Post » Sun Aug 08, 2010 9:17 am

The Premise: I am modifying a mod in which i want the contents of one container (a tool cabinet) to show up in another container in another part of the room.
The Question: is there a way to script 2 containers to act as one? Adding/removing from either affects both?
The Rationale: The tool cabinet is part of this mods sorter script, so all parts get put in here, including stuff I need to use in another area (i.e. a stove). Instead of trucking from work cabinet back to stove and back and forth, I want to add my parts in one (or the other) and have them available no matter what workbench I am at.
User avatar
Matt Bigelow
 
Posts: 3350
Joined: Sun Sep 30, 2007 6:36 pm

Post » Sun Aug 08, 2010 10:00 pm

I think the easiest way to do that is to just put and OnActivate block in both that calls "OtherRef.RemoveAllItems ThisRef 1".

BTW, [plug] I don't know if it will be of any use in your mod. but I released a script resource yesterday that includes that as a feature.
Well it will get your ingredients from any of your containers. http://www.newvegasnexus.com/downloads/file.php?id=41142
User avatar
Tai Scott
 
Posts: 3446
Joined: Sat Jan 20, 2007 6:58 pm

Post » Sun Aug 08, 2010 1:52 pm

Thanks tunaisafish. I will look into that and also download your resource and study it. I am glad that this is possible, makes things a lot easier for the mod.
User avatar
Steve Bates
 
Posts: 3447
Joined: Sun Aug 26, 2007 2:51 pm


Return to Fallout: New Vegas