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"

Double Jump does not work on client

So I use this BP to manage the double jump. alt text It works perfectly on the server but when I try to make a doublejump as client it kinda "bugs" and in the server it looks like it was a normal (1 time) jump.

Product Version: Not Selected
Tags:
more ▼

asked Jul 24 '14 at 01:02 PM in Blueprint Scripting

avatar image

BaschtianXD
15 2 5

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

2 answers: sort voted first

I know this question was asked a very good while ago, but I've stumbled upon this issue myself and also came up with a solution to this problem, so I thought I should share my findings for anyone else that has this same problem.

The issue here is that when you run the game with a dedicated server, the double jump action has not been transmitted to the server, and therefore is also not being broadcast to any client. The way to fix this is to set up some event dispatchers that replicate the action.

Here are the steps that I took:

  1. Create an event dispatcher in your character blueprint and name it DoubleJumpAction.

  2. Set the DoubleJumpAction event's replication to run on server.

  3. Create an input parameter for the DoubleJumpAction event, and make sure the type of the parameter is a reference to the class of your character blueprint.

  4. Create an event dispatcher in your character blueprint and name it BroadcastDoubleJump.

  5. Set the BroadcastDoubleJump event's replication to multicast.

  6. Create an input parameter for the BroadcastDoubleJump event, and make sure the type of the parameter is a reference to the class of your character blueprint.

  7. Instead of directly handling the double jump action in the character blueprint at the jump event, call the DoubleJumpAction event.

  8. Route the DoubleJumpAction event to the BroadcastDoubleJump event.

  9. From the BroadcastDoubleJump event link to the function that will perform the double jump.

Event Dispatchers InputAction Jump Call DoubleJumpAction Event Perform Double Jump

more ▼

answered Mar 21 '17 at 02:41 AM

avatar image

bcnobel
48 3 4 9

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

Instead of tying the upwards "Launch Velocity" node to a particular calculated vector, you could just set the Z value to whatever height in UE's units (i.e 750) you are wanting the player to launch up. The Launch Character node is networked by default, and by setting the Z value to something positive, the player is going to move upwards regardless of client-server relations.

I would advise doing the same thing as the answer by "bcnobel", binding the input to fire off a Reliable Event on the Server, which then calls a function in which you could have all of this in the function.

more ▼

answered Mar 21 '17 at 02:26 PM

avatar image

Arvestra
30 2 4 7

(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