replicate static mesh rotation
i have a cube inside my character that rotates towards the mouse location with this function
my player and the cube has replication enabled but currently the server is the only one replicating his rotation... with this i mean that the clients get the rotation of the host, but they don't get the rotation of the other clients
how do i solve this?
Replication always only happen from the server to the clients never from a client to a server. If you set a replicated variable client-side the server never knows about it because a client can't replicate things on itself. What you have done is fine you just need to send the rotation through a RunOnServer event and also set it on the server. Then if the cube component is set to replicate and the Character it lives on is also set to replicate + replicate movement then the server will finish the replication back to the other clients.
Follow this question
Once you sign in you will be able to subscribe for any updates here