Weapons And Animations
Weapon Base ISX Component
To change the animation state when you select a weapon in shortcuts or equip it through your inventory, you need to add the Weapon Base ISX Component to your character.
Now subscribe to the OnEquip delegate.
Create an Item class variable and make it Map.
Add ALS Overlay State as a second variable in the map.
Click the compile button to be able to edit the variable.
Now add some items. The first variable is the key. In it, the class of the inventory item is selected. The second variable is the animation state. Now you can find the desired animation state when we feed the object class into it.
Connect this logic to the On Equip delegate.
Now when you select a weapon or item in shortcuts or equip it through the inventory, you can change the animation in this way.
Controls
An example of choosing shortcuts:
An example of hiding a weapon:
Examples Of Using
In this way, you can check whether there are ammo in the weapon and take them away during the shot.
This way you can reload your weapon if your inventory contains the necessary ammo.
I also advise you to read more about this component in this article: Weapon Base Component.