Attach weapon with C++

Probably, the most sensible way to do it, is to create new class deriving from AStaticMeshActor. To handle weapons, you’ll attach your weapon to the character at proper skeleton socket.

This is the approach taken by Epic in ShooterGame sample and Unreal Tournamet 4.

This will make your weapon log separate from character.