Hello, I am trying to rotate the player after it gets hit and this code works great when the player that gets hit is the server player. However, when the player is the client, the player does not rotate. I have tried to run the function “Face Player” as a multicast, server, and client, but nothing seems to work.
Your using the Character Movement Component (CMC) which utilizes client-side prediction for movement. The hit client needs to apply the rotation locally first, then RPC the server to have it do it authoritatively.
Create an event that handles the rotation logic.
When the server “Hits” have it call the rotation event on the hit actor.
Hit actor applies controller rotation, then RPC’s the server to do the same.
Thank you so much @Rev0verDrive!!! You are a literal blessing!!!