Finding sockets from attached static meshes

Hey all,

I am trying to make a cave generator with Luos’ cave pack. All the meshes have sockets to all the opening.

Right now I have one base mesh in my components that I am running a quick script to add meshes to those sockets. I’ve attached my mess script below.

My road block is finding the socket names of those meshes I am attaching to the base Static Mesh Component. I’m still pretty new to UE4 and the only other way I know how to accomplish what I was is creating a tree of static meshes in the components list and run a random for each one. Which seems terrible.