I fully agree with SaMatra, this feature is currently missing. It seems to be impossible to protect gear, by limiting the excess to it with the existing event handlers.
The first variant, extending the EH with an additional parameter, is the more comfortable solution, imho. Because it allows to easily handle everything in this single call. If the EH is called several times on the other hand, it might be required to synchronize the results.
Another event handler could also be helpful to detect when a player switches between the weapon holders in the inventory (e.g.: 'Ground' to 'Crate').
Suggestion:
InventorySwitched
- unit: Object - Object the event handler is assigned to
- containerOld: Object - The previous selected container or weaponholder
- containerNew: Object - The new selected container or weaponholder