allstar602
New member
Hello,
I was wondering if there was a built-in mechanism for items that re-equips the previous item when the current item is either dropped/removed from the inventory.
My character uses a melee weapon as it's primary item and is able to pick up one other item. In some cases, the object requires two hands and simply unequips the sword before switching to the new item. The character must drop or unequip the item in order to pick up another item. The weapon can never be dropped and it remains as the primary item. This currently works as intended. What I want to do next is re-equip the primary item after dropping or "placing" the item.
I took a look at the documentation and found the "Auto Equip" enum on the EquipUnequip item ability which looks similar to what I need. However, it seems to only work for pickups after looking at references in the code. I also tried a variety of functions from the Item Set abilities, as well as the Inventory and Item Set Manager.
I appreciate your time, thanks.
I was wondering if there was a built-in mechanism for items that re-equips the previous item when the current item is either dropped/removed from the inventory.
My character uses a melee weapon as it's primary item and is able to pick up one other item. In some cases, the object requires two hands and simply unequips the sword before switching to the new item. The character must drop or unequip the item in order to pick up another item. The weapon can never be dropped and it remains as the primary item. This currently works as intended. What I want to do next is re-equip the primary item after dropping or "placing" the item.
I took a look at the documentation and found the "Auto Equip" enum on the EquipUnequip item ability which looks similar to what I need. However, it seems to only work for pickups after looking at references in the code. I also tried a variety of functions from the Item Set abilities, as well as the Inventory and Item Set Manager.
I appreciate your time, thanks.