Multiplayer Replication Problems - Grabbing objects

Hi guys!

Anyone out there sitting on some replication knowledge? I am trying to solve a problem of picking up objects but I have bugs, I don’t know If I am doing this right.

So the order of operations in grab event in my character_BP is:

  1. Check to see if we are holding anything.

  2. If no then cast to the blueprint we want to pick up.

  3. If the cast succeeds then set its physics to off.

  4. Attach the component to my holding point component.

  5. Store the held BP as a reference.

  6. Set holding an object to true.

  7. If I am holding an object, then set its physics on.

  8. Detach the actor.
    4.Clear the reference.

  9. Set holding an object to false.

This works if I set the grab event not to replicate but for some reason I can’t pick up the same object again that I drop.

So, I finally fixed it. This has taken me days of banging my head against the wall. So the issue seems to have been that enabling physics does not naturally mean that the actor follows along with the mesh, I had to reattach it to the scene root to put them back together. Not sure why this happens but my guess is that this is because the mesh component is not the actor scene root in this case.

1 Like