x

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"

Ladder don't work on client

I have a ladder actor which change the player movement from walking to falling. While the player is in the ladder-volume I change the movement velocity on the z-axis depending on the user input. This works perfectly on the server but the client don't want climb up. I heard that I have to set the movement first on client and then repeat it on the server but this also dont work.

How can I achieve that this will work? Maybe I am on the wrong path?

http://imgur.com/a/HESkf

Product Version: UE 4.9
Tags:
more ▼

asked Nov 22 '15 at 01:06 PM in Blueprint Scripting

avatar image

Capaxi
1 3

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

1 answer: sort voted first

You should for now just do everything related to movement and your character on the server.

This means: Spawn your character on the server, add movement commands on the server and do this type of ladder climbing on the server. In your character check "replicate" and "replicate movement" which will keep your client updated but everything related to gameplay should be done on the server.

For testing and lan games that works just fine with quite small delay. I didn't work too much with it and am not sure how it's properly optimized in Unreal or if that's possible to a good degree in BP itself. In theory what you wanna do is usually do everything on the server but also estimate what would and probably will happen on the client updating it with the server info but instead of having the delay between:

Send movement command to server -> Server executes movement -> Movement is replicated to the player -> Player moves.

What you do is:

Move player where it probably will be -> Send movement command to server -> Server executes movement -> Movement is replicated to the player -> If something different happened on the server than on the client update to that.

The obvious benefit is that it's more responsive. The downside that you may have a bit of teleporting and this weird type of glitching behind / forward if you have a large delay.

Just to give you a quick overview.

more ▼

answered Nov 22 '15 at 01:23 PM

avatar image

Erasio
5.9k 291 86 293

(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