Call Function Only on Client, or Only on Server

Multiplayer logic for sprinting is as follows.

This logic flow for the most part mirrors the crouch and jump logic found in character movement component (CMC).

Input → determine if you can do action → Do Action → RPC Server

Server → determine if you can do action → Do Action

Threads:

How dynamic your character is determines the complexity of movement speed change logic.

2 Likes