Help with a container summon script

Post » Mon Mar 14, 2011 11:44 pm

I need help making a summon-able container...
User avatar
Liii BLATES
 
Posts: 3423
Joined: Tue Aug 22, 2006 10:41 am

Post » Mon Mar 14, 2011 6:41 pm

If you place a persistent YourContainerREF somewhere...
;Summon containerSet rYourContainer to Player.PlaceAtMe YourContainerCONT 1YourContainerREF.RemoveAllItems rYourContainerrYourContainer.SetOwnershiprYourContainer.Activate Player;Unsummon containerrYourContainer.RemoveAllItems YourContainerREFrYourContainer.DisableSet rYourContainer to 0

...and attach the below to the container's script to alleviate save game bloat.

Begin GameMode    If GetDisabled        DeleteReference ; requires OBSE    EndIfEnd
Just be sure to never disable YourContainerREF or it'll crash.
User avatar
RUby DIaz
 
Posts: 3383
Joined: Wed Nov 29, 2006 8:18 am

Post » Mon Mar 14, 2011 11:07 pm

Thanks
User avatar
flora
 
Posts: 3479
Joined: Fri Jun 23, 2006 1:48 am


Return to IV - Oblivion