Firstly, I would NOT recommend to someone new to game development to work on a multiplayer game.
Since you’ve started working on MP anyways, making characters sprint (or do most movement functions for that matter) isn’t too hard, if you have a deep understanding of replication.
Essentially what you want to do is:
- on the client do whatever you do to start sprinting (i.e. press sprint button to begin sprinting, run your checks to see if player can sprint, etc.) none of this needs to be replicated…
- after the first part of your chain of nodes, you will probably want to activate a sprinting animation for the player, and increase the movement speed; THIS is what you want to replicate. To do this, create a custom function (i.e. On Sprint Server) and set this custom function to “Run On Server”. Have this custom event fire off another custom event (i.e. On Sprint Multicast) and set this new custom event to “Multicast”, this way all clients/players will see you sprinting around the game
Sorry for not posting screen shots, I would, but I can’t post any work I’m doing from my studio (doing so means my career in the games industry is over).
Again, multiplayer gameplay programming is very advanced, there are engineers whose careers are based just on doing this all day for a living. Just keep trying and go over exmaples content from Epic, look at the videos on network gameplay from Billy Bramer, etc.
Good luck!