Hey,
Thank you very much for answering! I still do have some questions and problems. First of all what exactly does
UPROPERTY(ReplicatedUsing = OnRep_OwnerRotation)
I was just aware of using
UPROPERTY(Transient, Replicated)
Do I understand the chain of events right, when I say that:
- Client calls “setRotation”.
- Client is not the server therefor
tells the server to handle this
problem - The server executes the function:
sets the rotation, and then tells
every client to call
“onRep_OwnerRotation()”?
Where does the server tell all the other clients that ClientXYZ is now looking in the direction A?
Isn’t there the reference to this specific actor missing? Something like this:
http://puu.sh/jJ7yg/5d87695742.jpg ?
My Problem is that this code obviously compiles but it’s not achieving the desired effect, unfortunately. It’s still the case that, when Client_1 rotates, he rotates locally (by calling “onRep_OwnerRotation()”), then tells the server about its change in rotation. The server does display the rotation movement of Client_1 correctly but Client_2 does not see any change in motion.
pic: http://puu.sh/jJ8gw/4ea097d432.jpg
Sorry for any inconvenience
~Theo