how to attach a weapon to character

how to attach a weapon to character

use AttachTo Method In USkeletalMeshComponent Class.

Like this :



FName AttachPoint = GameCharacter->GetWeaponAttachPoint();
Mesh1P->AttachTo(PawnMesh1p, AttachPoint);

It depends are you trying to attach a component or a actor with a MeshComponent?

thank you!This problem has been resolved!