Client's pawn movement/input not being send to host/server
My client's pawn movement/input is not being send to the host/server. On the client's window the client's pawn and the host's pawn both can move. On the host's window only the host's pawn can move.
asked Mar 22 '15 at 08:41 PM in Using UE4
Is your pawn using a CharacterMovementComponent? This is how the character in many of the project templates sends its movement to the server, and it has a lot of built-in functionality to handle movement over a network, such as prediction and correction - so it's a good place to start if it fits the needs of your project.
For a client to send data to the server, it has to call a Run on Server event (or a Server RPC in C++). The CharacterMovementComponent has implemented RPCs in C++ to handle sending the client's movement to the server, and for the server to send corrections to the client.
If you're not using a movement component that supports networking, you'll probably need to add some custom Run on Server events to send the client's movement to the server.
answered Mar 23 '15 at 08:51 PM
Ryan Gerleve STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here