for example:
Event OnEquipped(actor akActor)debug.messagebox("equipped")EndEventEvent OnUnequipped(actor akActor)debug.messagebox("unequipped")EndEventthe code is attached to a weapon.
then in-game, add this weapon to the favorites menu.
equipping this weapon either by conventional inventory menu or favorites menu will fire the "equipped" message
swapping to a bow in the favorites menu or inventory menu will fire "unequipped" message.
however, unequipping the bow in the favorites menu will force-re-equip the weapon wihtout firing the "equipped" message even though this works if done so manually in the inventory menu. there is something about the favorites hotkey that glitches the OnEquipped part of the script, but OnUnequipped is unaffected.
it's as if the OnEquipped part of the code stays active continuously even after firing an OnUnequipped event, since technically the weapon stays "equipped" in the game's cache when switching to a different weapon (hence how it remembers which weapon was previously equipped when unequipping the bow)
i'm wondering if there is either a way to fix this glitch in the hotkey menu, or script the event with something more specific, rather than OnEquipped to check if the weapon is actually being equipped again? or if there is a way to unequip the weapon completely from the hotkey cache so that you have to manually reequip the weapon when unequipping a bow or whatever other weapon force-unequips it?
btw, this glitch even breaks vanilla weapons such as Silver Sword when using hotkey favorites to equip weapons, but i guess no one cared or noticed since i have never heard of this issue until now.
