Training Livestream - Understanding Replication in UE4 - March 21 - Live from Epic HQ

Hi,

can you please show an Simple Example how to Replicate things like Grab a Stone and Drag it around or move it, and every client and the server can see it like the owning client sees it. I tried all combination of Execute on Server or Multicast or Execute on client and tried to replicate variables like transform or hit result but everytime the Clients dont get the same Information about the exact location of the stone at that moment, as the Player who moves/grabs it gets…idk how to explain.

Simple Example i spawn a stone all is ok on the client and on the server and on the 2nd client all get the same information and all looks good, but when im attaching the spawned Stone to my Grab Point and move it around, the server sees what the client does, moving in each direction and showing the right location of the grabbed stone at every frame, when the server grabs it, the client sees just the grabbed item and which direction the server is facing…and not getting the up down and looking information which the server gets from the client, where all looks good.

and when a release the grab on the both clients the stone disapears…

on the server is all ok i tried every combination of replicating in all forms i know but something is not working i have all Keys and functions in My player character as i tried to use it in my player controller nothing worked anymoore, is there any other point where i have to set the replication for moving things …i have checked all actors to replicate and if i spawn a stone and ran into it the information is ok it rolls around and all clients and server see the same but not when i grab…idk** an example of a simple grab which is replicated so all client see the stuff moving around would be great** or a tip how to do it, like replicate all or how all get the same information.

im not a noob in using unreal engine but the replication especially when u use attach to is a little bit confusing cause the clients dont get the world location of the grabbed or attached actor at anytime…thx for help :slight_smile:

Have a Good Day