I’m trying to make my player rotate to where the camera is facing in multiplayer. I use set actor rotation which works fine in singleplayer. In multiplayer however it doesn’t work.
I call an event called Rotate which is set to run on the server. I have no idea why this doesn’t work.
I hope somebody can help me.
1.Call multicast event on server with rotation value as input, so value itself gets send to all clients.
2.Create replicated Rotator variable with notification, in editor generated repNotify function change rotation.
For multiplayer (or if you ever plan to use bots AI), it is better to use focus actor and focal point for rotation.
This way you will have same move and rotate code for player character and bots later on.
Im not sure, but you can set in character class defaults node to true called something like “use pawn controller rotation yaw” and its rotating pawn on your mouse movement… (and ofc it works well in multiplayer)