[EDIT: Fixed it, turned out it was just my lack of a clean save file. Sorry for the stupidness, thanks to the replier :)] Hi there, I've recently starting on modding. I can program in Java & C++, so I can understand the basics of Papyrus. The first mod I'm working on is to recreate the 'Mojave Express Dropboxes' from Fallout NV. To those that don't know this: basically I want to transfer an item I put into one container to another container. I currently have two containers next to each other: WhiterunBox1 and WhiterunBox2. This piece of code here I attached to the first box.
Scriptname AAAABox1 extends ObjectReference
ObjectReference Property WhiterunBox2 Auto
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \
bool abBashAttack, bool abHitBlocked)
RemoveAllItems(WhiterunBox2, true, false)
EndEvent
So, when I hit the box, it should remove all the items within the box, and transfer them to WhiterunBox2. I tested it in-game: I can store items, and they disappear when I hit the box. However they never end up in the second box. I'm probably not referring to it in the right way. You can see in the images I added my 'properties' where I created the reference to WhiterunBox2 and the window where I gave WhiterunBox2 its name. TL;DR: How can I add a reference to a different container correctly, so that I can transfer items to it?