Hey guys, so I’ve been working on some top-down shooter controls and all is going well so far. At one moment I tried to rotate my character based on where the mouse is looking.
Set Actor Rotation
To do this I found the hit location of my cursor and found the lookat vector and then used the ‘Set Actor Rotation’ ( also disabled ‘Use Controller Rotation Yaw’) function to set my characters rotation. This worked perfectly, until I tried a multiplayer game. It seemed that the servers character was being handles fine and replicated to all clients, but the client only rotated locally.
Set Control Rotation
So after a lot of tinkering I turned ‘Use Controller Rotation Yaw’ back on and found the ‘Set Control Rotation’, the end result is the same except now, it also works in multiplayer.
##Difference?
So while I solved my issue, I’d still like an explanation if possible. What is the difference between the 2 functions and where does it go wrong with Set Actor Rotation. I’m asking this to really understand how Unreal works. Thanks in advance!
Cheers,
Oz