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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Custom Movement Component 4.18

Hello! I have been beating my head against a wall for an entire week trying to get a basic sprint script to compile. There is so little documentation about custom movement modes that it is driving me crazy. I am following this tutorial right now and I think I am close to making it work.

The only problem left that I can see (besides the complete lack of documentation or instruction) is that FNetworkPredictionData_Client_Character defaults to a non-copyable class, which is a problem since I want to make a copy and call it. Is there any way to do this?

My current error Screenshot of error

All of the tutorials I can find are ages old, and I have been looking for weeks for something updated. I didn't even want to dive into the c++ of the engine, I just wanted to use Blueprints.

Here is my CustomMovement.cpp

Here is my CustomMovement.h

I believe if I can get this function to become copyable then I would be in the clear. If you have any other tips on getting custom movement (like sprinting, teleporting, ect) networked properly that would be a huge help. I noticed some Blueprint nodes such as this one: Blueprint Node

But I can't figure out how to get networking to work with this. The best I could do was set it on the client and server at the same time and hope that the clients have a good enough connection not to get corrected. Also I couldn't figure out how to add custom movement logic to this node, even using Event UpdateCustomMovementI could not get it to work. So any tips either on the c++ side or Blueprint side about how to properly get custom movement working would be great! Like I said I have consumed every custom movement tutorial I have found and most of them don't work on the current engine version.

I did see this wiki page but, I couldn't figure out how to turn that into a sprint function, changing max walk speed while in the custom mode doesn't work. Which makes sense because there is no movement logic to take advantage of that variable.

Anyway sorry for the long read and thank you in advance for any help you can give me. I have been struggling with this for a while now!

Product Version: UE 4.18
more ▼

asked Jan 22 '18 at 01:25 AM in C++ Programming

avatar image

1 1 1

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

0 answers: sort voted first
Be the first one to answer this question
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