1. Hello, is there something like
    OnPlayerInventoryOpened(BasePlayer player)
    OnPlayerInventoryClosed(BasePlayer player)
    ? or is there something with that we can track that?
    I would love that as hook
    [DOUBLEPOST=1437232203][/DOUBLEPOST]------ I found something, but I don't think that is useable.

    UIInventory.OnOpen
    UIInventory.OnClose
    UIInventory.isOpen
     
    Last edited by a moderator: Jul 18, 2015
  2. Maybe OnPlayerInput can help you.
     
  3. Found it in the docs. Ill see
    [DOUBLEPOST=1437234852][/DOUBLEPOST]umm like this?:
    Code:
    void OnPlayerInput(BasePlayer player, InputState input)
    {
        if(input.WasDown(INVENTORY)
            SendReply(player, "You pushed the inventory button!")
    }
     
  4. I think yes.
    [DOUBLEPOST=1437235674][/DOUBLEPOST]
    Code:
    if(input.WasJustPressed(BUTTON.INVENTORY))
     
  5. Ah i needed WasJustReleased...
    Otherwise it strangely triggered twice..
    umm Do you see a possibillity to track ESC too? I cant find it in the list of buttons
    Code:
    public enum BUTTON
    {
        MAP = 1,
        FORWARD = 2,
        BACKWARD = 4,
        LEFT = 8,
        RIGHT = 16,
        JUMP = 32,
        DUCK = 64,
        SPRINT = 128,
        USE = 256,
        INVENTORY = 512,
        FIRE_PRIMARY = 1024,
        FIRE_SECONDARY = 2048,
        CHAT = 4096,
        RELOAD = 8192,
        VOICECHAT = 16384,
        NEXT = 65536,
        PREVIOUS = 131072,
        SLOT1 = 262144,
        SLOT2 = 524288,
        SLOT3 = 1048576,
        SLOT4 = 2097152,
        SLOT5 = 4194304,
        SLOT6 = 8388608,
        SLOT7 = 16777216,
        SLOT8 = 33554432,
        LOOK_ALT = 67108864,
        FIRE_THIRD = 134217728
    }
     
    Last edited by a moderator: Jul 18, 2015
  6. I think not.