Trying to spawn a static mesh component attached to another

hi

I have a script where I am attempting a create a static mesh component and attach it to another component.
Unfortunately I can only figure out how to do this to the root?

Does anyone know how?

Ed

hey bud,

you could probably use a static mesh socket

let me know if this is cool

Are you familiar with the Attach to Component node?

You can use this node to attach a component to another component in your actor, even during runtime/gameplay.