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: https://youtu.be/KCQQEdYS6B4
And here's a video with dedicated server enabled: https://youtu.be/HEqDrkHOhUM
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.
2nd: character jump function: https://i.imgur.com/5EmNeJS.jpg
4th Event graph: https://i.imgur.com/x4iNyP6.jpg
asked Mar 23 '18 at 01:18 AM in Blueprint Scripting
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
answered Mar 23 '18 at 03:22 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here