Simple question on Replication
What does replication exactly do ? i know the basic but my main question is that for example we have set a cube to spin 1 degree each frame and it has a Switch on Authority and only server is spinning it . but the cube has replication checked .now does the server send the exact location and rotation of the cube to client ? or the server is telling the client rotate the cube 1 degree ?
i have this question because i think (maybe because of my lack of knowledge) in terms of optimization the second scenario is much more optimized
thanks for your respond in advance
asked Jan 22 '19 at 05:33 AM in Blueprint Scripting
Alright, You don't need the Switch has Authority to replicate movement of an actor. You simply need to set the Actor to replicate and place the actor in the world. Switch has authority is designed to run a check to see if the owning player is the server or a client. So the Actor that is NOT being possessed doesn't need to be checked for authority. I recommend insuring that the Actor is in fact replicated, then simply place it in the world. Then when you load in on any client, it should replicate the movement. However, if you could post a snap of the blueprint code and the Class Settings, I could tell you whether or not its setup properly. Thanks!
A Quick Breakdown of what the different Replication methods mean in a nutshell. (Please anyone correct me if I'm wrong) On an actor there are 3 Different types of replication methods.
Hope this makes Sense!
Follow this question
Once you sign in you will be able to subscribe for any updates here