Sir, I am using Visual Blueprint Scripting to attach a mesh to a socket

Hi Friends,

I am using Visual Blueprint Scripting to attach and detach a mesh to a socket but it is giving compilation error. I have attached the image files of the Visual BluePrint Scripting. If you can give your emails I will send the compiler errors.
Regards,

Hi Friends,

Please reply.

Regards,
Robert VanHalen.

It probably does not have access to his character. You should “Cast” your character for this.

You can check the link for more detailed information.

You should include the compile error in your screenshots. My guess for why you are getting a compile error would be that you are trying to take an array and plug it into a single variable, seen in this screenshot. The Out Actors pin from your Get Attached Actors function is an array, and the **Target **pin on your DetachFromActor function is not. You would need to iterate over the array using a For Each loop and detach them individually.

Hi Friends,

I have attached the compiler errors.
Regards,

Hi Friends,

Please answer to the above questions.
Regards,
.