About item location replication

I’ve tried many ways, but when the client player holds the item, it vibrates. Does anyone know the reason for this or how to replicate this system?

Hello @mayak37 ,Welcome back to the forums!
You can try the following setup to avoid flickering issues in multiplayer when grabbing the object.

First, you need two variables in your Character: a boolean called bIsGrabbingObject and another one that references the cube blueprint (or whatever object you want to move).
image

You also need the Physics Handle, and it’s important that Component Replicates is enabled on it.
Then implement the following logic in your Character.




  • Target is a Physics Handle Component
  • Component is a Primitive Component
  • Location is a Vector
  • Cube is your Blueprint Actor

In the cube blueprint, make sure to enable Replicates, Replicate Movement, and Always Relevant, since the actor needs to replicate correctly.

Then create a boolean variable in the cube called IsGrabbed and set it to RepNotify. In the OnRep_IsGrabbed function, add the corresponding logic.

Finally, call this logic from your Input Action.

With this setup, the flickering and vibration should be eliminated.

Hope it helps!