Hello, how can i access the weapons of the actual combatant in his inventory, my final goal is to make a quick equip with the controller, for example right arrow equips weapon at current index +1 and left arrow equips weapon at index -1 and down arrow unequips weapon etc, thanks for your answer
You can register to event handlers in the inventory to get notified of inventory changes, e.g.:
combatant.Inventory.Weapon.Add += YourFunction;
YourFunction would take a single EquipShortcut as parameter.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!