Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

1st: Apply Gravity and rotation function in player bp: https://i.imgur.com/JLiEvVV.jpg https://i.imgur.com/fRJL2DK.jpg

2nd: character jump function: https://i.imgur.com/5EmNeJS.jpg

3rd: Mouse input function: https://i.imgur.com/QdpZYMA.jpg https://i.imgur.com/GVQAqPo.jpg

4th Event graph: https://i.imgur.com/x4iNyP6.jpg

Product Version: UE 4.18
more ▼

asked Mar 23 '18 at 01:18 AM in Blueprint Scripting

avatar image

1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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





more ▼

answered Mar 23 '18 at 03:22 AM

avatar image

729 10 8 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question