OpenInventory and Script Question

Post » Sun Nov 18, 2012 2:38 pm

From with in a script is there an action that will force close the OpenInventory menu ?

I am understand how to monitor if an item from a container changes or how to filter items etc... but I have a want in the case a user picks a certain item to close the menu.
User avatar
pinar
 
Posts: 3453
Joined: Thu Apr 19, 2007 1:35 pm

Post » Mon Nov 19, 2012 1:12 am

I know that http://www.creationkit.com/DisablePlayerControls_-_Game can close some menus, perhaps one of its flags will allow you to close the container menu?

Cipscis
User avatar
Gemma Archer
 
Posts: 3492
Joined: Sun Jul 16, 2006 12:02 am

Post » Sun Nov 18, 2012 4:24 pm

The below will work for any equipables:

Actor Property PlayerREF AutoArmor Property YourARMO AutoEvent OnEquipped(Actor akActor)	If akActor == PlayerREF		Game.DisablePlayerControls(False, False, False, False, False, True) ; Momentarily disable other menus		PlayerREF.EquipItem(YourARMO, True, True) ; Prevent unequip/reequip in favorites until the current  is resolved		Utility.Wait(0.01) ; This ensures equipping the token from the favorites menu works		PlayerREF.UnequipItem(YourARMO, False, True) ; Silently unequip item		Game.EnablePlayerControls(False, False, False, False, False, True) ; Undo DisablePlayerControls		; Your stuff	EndIfEndEvent

All that could be moved to an OnContainerChanged event if need be.
User avatar
SaVino GοΜ
 
Posts: 3360
Joined: Mon Sep 17, 2007 8:00 pm

Post » Sun Nov 18, 2012 8:46 pm

Thanks Guys Your the Best!!!
User avatar
kevin ball
 
Posts: 3399
Joined: Fri Jun 08, 2007 10:02 pm


Return to V - Skyrim