Hey @Player_003. I would suggest to have a variable in your character holding a reference to the equipped weapon, something like CurrentWeapon, or PrimaryWeapon and SecondaryWeapon (in case you can carry 2), or an array like WeaponSlots in case you can carry many. Now, you would need a base class for your weapons, like WeaponBase and have all your guns inherit from this class. By having this you can then know what weapon you are holding by checking the class of the active weapon, or you could also have an enum inside the base class and assign it in the child classes.
1 Like