Iguane
New member
Hello !
I'm trying to enable a new itemset and its attached weapon within a script but I can't get the weapon to equip directly.
With the following code I can enable the itemset, but a I have to press next key at runtime to enable the weapon :
With the following code the weapon is displayed but the animation is still that of the previous itemset.
I'm missing something, does anyone have any advice?
I'm trying to enable a new itemset and its attached weapon within a script but I can't get the weapon to equip directly.
With the following code I can enable the itemset, but a I have to press next key at runtime to enable the weapon :
C#:
itemset.CategoryItemSets[categoryID].ItemSetList[itemSetID].Enabled = true;
With the following code the weapon is displayed but the animation is still that of the previous itemset.
C#:
var itemID = itemset.CategoryItemSets[categoryID].ItemSetList[itemSetID].ItemIdentifiers[slotID];
inventory.EquipItem(itemID, slotID, true);
I'm missing something, does anyone have any advice?