Get character to use custom character movement component
Hello! I've fiddled around for quite a while with blueprints and I'm trying to make a transition over to C++. My learning project involves a character with a couple unique movement options like a double-jump and an air-dash, so I figured I'd create a class that inherits from the character movement component.
Now that I've successfully made my custom character movement component, I am attempting to get my character to use it. I first tried:
within my character, but turns out CharacterMovement cannot be accessed, because it is private. What is the correct way to instruct my custom character to use my custom charactermovementcomponent in c++?
I'm pretty new to C++ specifically, so sorry for any obvious oversights. Thank you!
asked May 02 '16 at 09:31 PM in C++ Programming
You can override Character Movement Component in the constructor. Instead of use default empty constructor, replace:
Although it is for an older engine version, the Rama wiki it's a usefull resource:
answered Jul 31 '17 at 02:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here