Scripting for Crafting containers and workbenches

Post » Sun Feb 15, 2015 7:31 am

Hey, I have been looking everywere for scripts that i can use to make my containers and crafting workbenches to autoloot/autostore items on activation.

Is there anyone who can help me with a script or are there tutorials somewere so i can make one.

Thank you

User avatar
djimi
 
Posts: 3519
Joined: Mon Oct 23, 2006 6:44 am

Post » Sun Feb 15, 2015 10:38 am

for autoloot:

Event OnActivate ( ObjectReference akActionRef )

RemoveAllItems ( akActionRef, true, true )

endEvent

for autostore, basically just the same the other way around, but i'd think twice about removing all items from your players without a warning :-)

User avatar
Frank Firefly
 
Posts: 3429
Joined: Sun Aug 19, 2007 9:34 am


Return to V - Skyrim