Hello, I have a weapon that I am trying to attach to my players first person arms. I had originally had an issue with rotating the weapon properly to the socket im attaching it to. To fix this, I changed the values to “snap to target” That worked great, or so I thought. This does not seem to be getting applied to the client side of things. The host has the weapon correctly attached, while the client has it rotated as was the issue before on the server before enabling snap to target. Im really lost here, any ideas?
Spawn on server, attach on server AND on clients.
Create a variable “EquippedWeapon” in your character class, with RepNotify enabled.
When attaching on server, make that variable point to the newly attached weapon.
In character function OnRep_EquippedWeapon, attach it again.
The only way I can get this thing rotated correctly is attaching it directly to hand_r bone. This is not ideal as the socket is correctly positioned and rotated. MY second function for attaching the weapon to the person mesh is working on the rotation/attach. The only difference right now is one is attaching it to a socket connected to an ik bone and the other is attaching it directly to the hand. Is it something with the socket not replicating?
I am running into exactly the same Issue, with basically the same code! Have you managed to fix this issue? I have looked into Multicasting, but (as you stated) it spawns the weapon twice, once correctly and once rotated the wrong way.