Opening an NPCs inventory to the player.

Post » Mon Jun 18, 2012 2:57 pm

I need to get an npcs nventory to open up to the player (Like it does with followers). I cannot find any papyrus functions that hint at this, except one that says it opens up the pickpocket interface.

I also need to get an action to execute when the player closes the inventory of the NPC.

Is there any way to do this?
User avatar
jessica sonny
 
Posts: 3531
Joined: Thu Nov 02, 2006 6:27 pm

Post » Mon Jun 18, 2012 2:10 pm

I need to get an npcs inventory to open up to the player (Like it does with followers). I cannot find any papyrus functions that hint at this

http://www.creationkit.com/OpenInventory_-_Actor :biggrin:

I also need to get an action to execute when the player closes the inventory of the NPC.

You can use a while loop around Utility.IsInMenuMode() to catch when they exit the inventory and return to game mode.
User avatar
GPMG
 
Posts: 3507
Joined: Sat Sep 15, 2007 10:55 am

Post » Mon Jun 18, 2012 9:01 pm

You can use a while loop around Utility.IsInMenuMode() to catch when they exit the inventory and return to game mode.
You could also call http://www.creationkit.com/Wait_-_Utility as it will not start waiting until the game re-enters GameMode.

Cipscis
User avatar
Taylrea Teodor
 
Posts: 3378
Joined: Sat Nov 18, 2006 12:20 am


Return to V - Skyrim