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"

Correct Way To Override CharacterMovementComponent?

I need my character to have a dynamic value for UCharacterMovementComponent::JumpZVelocity, that changes in different contexts.

The issue that I'm running into is that the ACharacter::CharacterMovement is set to private. Were that not the case, I could modify ACharacter::CharacterMovement::JumpZVelocity directly. I could implement my own custom movement controller, putting the new logic there, but I wouldn't be able to apply it to my character because, again, ACharacter::CharacterMovement is private.

I don't want to just modify ACharacter::CharacterMovement to change it from private to protected, simply to suit my needs; I'm sure that the engine has it set to private for a reason. What is the accepted way to make this change? I'm not looking to work with blueprints. Thanks!

Product Version: UE 4.13
Tags:
more ▼

asked Sep 08 '16 at 04:53 AM in Using UE4

avatar image

ntwiles
6

avatar image arzatri Nov 18 '18 at 09:29 PM

this is also my problem. althou somehow in 4.19 it can be override via blueprint, but i still can't override it in C++

(comments are locked)
10|2000 characters needed characters left

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