InterpToMovementComponent doesn't work in multiplayer

When using an actor with an InterpToMovementComponent in a multiplayer game the position isn’t set correctly on non-hosts.

Host view:

Client view:

The cube on the host bobs up and down while on the client it just sits on the ground twitching.

I was able to repro this by creating a new FirstPerson Blueprint project and creating a blueprint inherited from Actor with the following hierarchy:

54701-components.png

The settings for the movement component are:

54702-movement.png

Also make sure to check Replicates and Replicate Movement in the Class Defaults.

Is the object replicated?

Oh, forgot to add that to my repro steps but yes, replicates and replicate movement are both checked.

Hi kgamble,

I attempted to reproduce this but I couldn’t get your results. The Client and Host both see the blueprint moving.

Would you be willing to upload a small test project that has the issue?

I used a test project to make my screenshots so I was sure that I did but when I opened it up this morning it seems to be working correctly. As far as I know the only thing different between today and Tuesday is that I’m in a different state but I’m pretty sure my physical location shouldn’t make a difference.

This is still happening in the project I originally found it in though so I will see if I can reproduce it in a different test project.

I’m going to resolve this post for now. When you have time to continue troubleshooting this issue, just post back here to reopen the post.

Cheers,

TJ