I'm using the Combat Example downloadable asset to try to make some combat with that for my game. I'd rather not use the custom inventory that comes with that, what would be the easy way to equip and unequip different weapons for the player using the combat scripts?
I also think the combat script could be expanded; Would be great if I could add more than just one type of animation and sound for each weapon. For example, I want to have some attack combos, with several different sounds that would be chosen at random.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
To give something of a caveat: it's not an "official combat extension" for AC, but rather a practical example on how gameplay can be extended through custom script.
The equipping of items is handled by the PlayerCombat script's EquipWeapon function. To have this run when clicking items in e.g. the default Inventory menu, hook into the OnMenuElementClick custom event and extract the clicked item instance: