I am attempting to make a bag of holding. It will work by having the play equip an armour item with a script it detects that it is equipped waits for menus to be closed then will unequip itself and open a container which is kept safely in another cell.
My current code:
Scriptname BagOfHoldingARMRSCRP extends ObjectReference Int iCountObjectReference Property BoHCONT AutoArmor Property BagOfHoldingARMO AutoEvent OnEquipped(Actor akActor) Utility.Wait(0.5) BoHCONT.BlockActivation(False) Game.GetPlayer().UnequipItem(BagOfHoldingARMO, False, False) if akActor == Game.GetPlayer() Debug.Notification("Working after menu closed") BoHCONT.Activate(Game.GetPlayer()) Debug.Notification("Container activated!") endifEndEventWhat doesn't work
- Doesn't unequip
- Container doesn't open
- All the Debug.Notification()'s work
- Waits till menus are closed before doing anything
