Attach To Component Replication On Clients

Hello everyone. I hope anyone can help me on this one because i’m getting crazy. The problem is i’m trying to spawn an actor from server which i can and i think i should. But it’s not attaching to character on clients ( on dedicated server ).

I tried to create 3 custom events ( normal event, multicast and server ) and did not do the trick. the best result i can reach with this script. Does anyone have any idea? Any answer would be awesome for me…

Screenshots;

251072-replicated-events-1.png

Playing On Clients

Not sure if this is exactly the same issue. But when I called AttachToComponent in a server function, I also noticed that the weapon was not being attached to my player. When I looked at the blueprint for my weapon, specifically the static mesh component, I noticed I did not check the “Component Replicates” box.

267674-capture.png

Once I checked this box, the weapon attached to the player on both the client and server side.

Thank you so much for this both of you! I was driving myself crazy not being able to figure out why it wasn’t working!

Thank you so much for this both of you! I was driving myself crazy not being able to figure out why it wasn’t working!