Hi everyone,
I was wondering if there is an option to get currently used inventory item in action list. All I see are parameters and popups and I have to manually set all the items. I am trying to give an item to another player but before giving it I have to check if the item can be given to that player (I have an action that checks appropriate properties of an item). I don't want to specify this action for all inventory items in the game (a lot of them and all would be the same except the item), so I am looking if there is something like current inventory item, but Inventory add and remove methods doesn't have that and runtimeInventory fields like "selected", "last clicked", etc. are giving me null (maybe because I use only keyboard to navigate.
Comments
However, a custom script could read this variable in an Update() function, and assign it to its own InvItem variable, provided that it is not null. This way, it will always be set to the last-selected item.