Issues attaching Weapon Actor to Player Character.

This is my current setup I have a class PlayerCharacter that is derived from character and a weapon class that is derived from actor. I am having issues attaching the weapon to the character in C++. In the player character I have a variable holding a instance of a weapon class that I placed in the world. Any thoughts or ideas concerning this?

You could use this in your player class.

WeaponVariableName->AttachToComponent(Mesh1P, FAttachmentTransformRules(EAttachmentRule::SnapToTarget, true), TEXT(“SocketName”));

Cool I’ll try it soon.