Aim Offset Not working / not replicated in Multiplayer

Hello, I am working on a FPS Shooter just as a side project to learn a little more about the Unreal Engine due to my interest in this field. I have made separate TPP and FPP meshes for the first person appearance. Time has come in my project to add an aim offset, But problems quickly arose :frowning:

On my Client side the aim offset is working perfectly how i want it to. But when I switch over to my server side the aim offset does not work and is always facing forward (down the x plane) Example Video : - YouTube

My Aim Offset is as shown Here in this post

I dont have much experience in multiplayer replication, all I have really done was just add basic functions such as prone, walk movement, and crouch movement.

Any help is appreciated. Thank You and have a great day! :slight_smile:

Hey ClassyGentleman,

In order for the other clients to know how to adjust the Aim Offset, your Character or Controller will have to replicate the rotation values (like what you are doing in your Animation Blueprint) but instead, do it in your Character / Controller and make sure it is the Authority setting the Aim Offset values.

Then, in your Animation Blueprint, you’ll just get a reference to the Character and get those values directly and set them to the values needed in the Animation Blueprint to adjust the Aim Offset Blueprint.

The way I know how to set up replication, for example with the player is walking, is with a walking function, which has a bool saying is player walking, true or false, then a branch with true set to stop walking and false set to start walking.

Then in start walking, I have it to wear switch has authority, then with the authority exec pin i have set the is player walking bool with the check mark check. And the remote pin with a custom event made in the event graph that is run on server and reliable. and then connect that to the is player walking node.

Even tho it is crouching It is the same concept. Do i need to do something along the line of this? or is it completely different.

This is what I have had so far and it does not work. That is at least what I thought you had to do from what you told me. I am probably wrong tho lol.

109123-aimoffsetinanimbp.png

Here is a project that does what you’re looking for:

[][1]

[1]: