Actor rotation replicating issue

Hello guys, Iam having an issue with replicating character rotation to a client. I tried a lots of variations to fix a problem that client character stutters while rotating. Everything else work pretty well, Its pretty much a visual problem. If someone could help me with this problem, I would very much appreciate it.

Looking forward to any answer that could help, thanks so much

You should call your Update Rotation function from the Tick event, not after the property is replicated. Replication is going to happen less often than the game ticks. This means that if you only update the rotation whenever replication occurs, it will look suttery, because there will be multiple game ticks/frames where the rotation isn’t being updated.

Structure your code like this:

  • When the rotation value replicates from the server to the client, store the replicated value as a variable/property.
  • Every game tick, use RInterpTo to interpolate from the current rotation to the one that was stored from replication

Also, it’s probably better to use a replicated property instead of a replicated function if you want to be continuously updating the value.