Changing values of replicated variables

In this:

The values of ReplicatedVector and ReplicatedFloat variables appear to be (0,0,0) and (0) instead of (1,1,0) and (1).

What is the reason for this?

I’m writing this for anyone running into this same problem, or if anyone knows better would kind share their answer.

AddMovementInput replication is handled by the server. So, I’m guessing that ReplicatedVector & ReplicatedFloat variables get replicated before the values are sent via AddMovementInput.

Adding a Delay as in the picture remedies the issue.

Hello there!

Im not completley sure if i understood your post correct, but when you are setting the Vector and Float right before the “Add Movement-Input” you will always use (1,1,0) and (1) for the “Add Movement-Input”.

Being the Authority (Server) or being the Remote (Client) would not make a difference.

Also: When you want to change a replicated variable, you need to change them on the server to replicate properly (“Run on Server”-Event)

Hope this helps!