How to properly replicate certain functions for multiplayer?

Not sure how to put it… i’m making multiplayer shooter with custom gravity mechanic, the mechanic itself works fine with dedicated server disabled, but when i enable dedicated server, game just bugs, custom physics don’t work, and it screws characters movement.

Here’s the video how it works without dedicated server enabled:

And here’s a video with dedicated server enabled:

Basically i need some advice how to replicate custom gravity and movement, so it can run well on both server and client.
Here is some of my code which i want to replicate, or maybe some of them.

1st: Apply Gravity and rotation function in player bp:


2nd: character jump function:

3rd: Mouse input function:


4th Event graph:

It seems like your problem is that you’re not replicating variables or events. Epic has a a lot of info on this better than what I can tell you on here but you want to set your character bp to Replicate and Always Relevant. Set the projectile BP to Replicate as well. Your variables will probably have to be set to Replicated. You’re also going to want your functions/custom events to Multicast/Run on Server/Run on Client.

Anyway, here are a bunch of links to help you out

Examples

Actors

Variables

Functions