Add Movement Input not work on client

Hello, I am making multiplayer game.

In the Player Controller class, when clicked mouse server RPC call Add Movement Input of possessed pawn.

Work on server side but client not work.

The pawn is replicated and authority is checked on Player Controller class.

Server RPC is called properly but (Pawn)->AddMovementInput(Vector); is not work.

Anyone know about this problem?

The client will need to have some control over this as well since they are the ones adding the input. You can run both server and client movement inputs in tandem so they are synchronized. It sounds like since you have server has authority checks, its locking out the client from performing the inputs.

1 Like

Thanks for the reply.
As a result of continued experimentation, the character did not move even though AddMovementInput was called from the Tick function of the character class without any conditions.
I figured this was a problem with the project itself and ended up recreating the project…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.