How to attach static mesh to static mesh by socket in an actor?

I think I’ve solved it. My actor may have a static mesh component, and its static mesh is the one I referred. What I should do is to attach the actor
to the target static mesh component. And unreal engine has a function to fulfill this, named AttachToComponent().