Jump to content

Open player inventory from script


Recommended Posts

I've read that


UI.InvokeString("HUDMenu","_global.skse.OpenMenu","InventoryMenu")

will open the player's inventory. I have skse installed and successfully run this function from a hotkey (by which I mean the notification is seen:)

Function dz_player_equip_menu()

;OpenMenu("InventoryMenu")

;PlayerRef.OpenInventory()

debug.notification("trying to open player inventory")

UI.InvokeString("HUDMenu","_global.skse.OpenMenu","InventoryMenu")
EndFunction

but I cannot open the player's inventory, can anyone help?

 

diziet

Link to comment
Share on other sites

Try using TapKey instead:

 

Function dz_player_equip_menu()

    ;OpenMenu("InventoryMenu")

    ;PlayerRef.OpenInventory()

    If Utility.IsInMenuMode() == False
        debug.notification("trying to open player inventory")

        Input.TapKey(Input.GetMappedKey("Quick Inventory"))
    Endif
EndFunction
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...