Help with Enums to change Weapon Type (C++)

Hi all,

I’m looking for some help regarding changing Weapons Poses by passing an Enum.

Firstly, I declared my Enum’s in my Weapon.h class i.e. (pistol, Assault Rifle, Mellee etc )

WeaponType

Secondly I created an instance of this Enum in my Weapon.cpp called “EWeaponType WeaponType;” and exposed it to blueprints.
In the blueprints for each weapon i chose the weapon type enum from a dropdown.

WeaponTypeInstance

In the Anim instance I have access to that WeaponType Enum variable.

Regarding the c++, I currently have an Equip function where i could try to call the function for the Weapon Class ->Weapon Type but i’m under how to do this.

Do I have to somehow create a “get Weapon Type” function and pass it so when I’m running the equip function for a new Weapon equipped, it gets the Weapon Type and updates that variable in the anim instance for the right pose?

This is the issue for me right now

bump :disappointed: :sweat:

bump