Announcement

Collapse
No announcement yet.

Disable drop item if I have it equipped

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Disable drop item if I have it equipped

    So as the title says I have an inventory and every time I press an item https://gyazo.com/c4fd18309c1e3b3048ce87a4d7cd2993 I set a name variable to the item ID https://gyazo.com/2feaea9f31914478c6d69f9384f1ad29 and then I set a variable to what is the item I am looking at https://gyazo.com/4f9f12fda3ddd6a18797ea2af1baaa03 and then I check to see if they are the same and if they are the same I don't drop the item https://gyazo.com/b2baf6842d859a4066b09df7fbface54. It all works fine until I reopen the inventory, when I open it I can drop the item that I am currently using. This is my load inventory items that happens everytime I open the inventory https://gyazo.com/93e610d74ec6070489992db4b21335c5. It even works if its the same item with the same ID.
    Last edited by warrior btw; 08-07-2019, 09:20 PM.

    #2
    I'm not quite sure what exactly your problem is, but it doesn't seem like you are clearing the variables. So that when you reopen the inventory it still has the old references. Just do an empty SetVariable and look if that fixes the problem. Hope t works :}

    Comment


      #3
      Still the same. Maybe I'll try to actually remove the widget and create a new one in a seperate box that can not be dropped and everytime you change your weapon it adds it back to the inventory and replaces it with the new one. Hopefully I can make it work

      Comment

      Working...
      X