Hello! I’ve run into a bit of a problem.
I’ve started to study replication for networking and online games. It’s pretty complicated but I finally got a hold of the idea and implemented it into all of my player’s functions. However, there is one thing that I just can’t figure out.
I have a function that allows the player to pickup objects when E is pressed, shooting a LineTraceByChannel from the World Location of the player’s camera forward. Once it makes contact with an object that has physics enabled, it sets the objects location to a SceneComponent being used as a location for a Physics Handle in front of the player.
This all works, and is multicasted to replicate for Server and Client to see, but the problem is that when a player picks an object up, they can move the object around on their screen with the mouse, but the other player cannot see that movement. The only movement of the held object they see is when the player actually moves. My guess is that the opposite player is only seeing the object from where the Physics Handle is originally set, which shouldn’t be happening because I’m using GetWorldLocation.
I’ve also tried making the SceneComponent a child of the player’s Camera or CameraBoom, but with no success. And if pictures are required to understand I can do that. Any help would be greatly appreciated!