How can I switch a skeletal mesh to a different one?

I had a question regarding switching weapons in particular. I want to be able to have a default SkeletalMeshComponent in my Character class, but I want to be able to tell it if a particular weapon is selected or equipped, I want to switch the SkeletalMeshComponent with a different one.

Any Ideas on how to do this?

You should implement this the other way actually, don’t use skeletal mesh component inside your character actor for the weapon, but attach weapon actor to your character to the specified bone, the weapon then will follow this bone’s transformation.

Everything you need to do this is the following:

AActor::AttachRootComponent()
AActor::AttachRootComponentToActor()

so kinda like spawning the mesh and attaching it to the particular bone on the character?

Yep, exactly. Spawn your weapon actor that contains meshes and everything else you wish and attach to the bone upon equip.