Download

Aim Offset setup only replicates to two clients, third is incorrect

Hello Unreal engineers,

I’m working on a Animation Blueprint and had to setup Aim Offset for the character. I followed this tutorial and everything worked fine. But for some reason the replication works only for two connected clients. Third is offset by 90 degrees or so.

Here’s an image for easier understanding:
572d80219d472da7102eb039aed41222673dafbc.jpeg

And if you notice the same thing happens for others. For example, client 1 is relevant only for self and server. Server is relevant for self and Client 2, and Client 2 is relevant only for self and server.

Not sure what I’m doing wrong. I set my Yaw and Pitch variables as replicated, but it doesn’t work.

Any ideas?

You will need to do something like this:

26246b4bd361e9a14376b8cc7a9056570d68d327.jpeg

And then just set your Player Aim Pitch and Yaw in your animation blueprint to those variables.

There is a whole discussion about this here: Serious shot replication problem [video] - C++ Gameplay Programming - Unreal Engine Forums