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"

How can I override OnJumped()?

Heya folks,

How can one override OnJumped()? Every time all I get is this error:

"method with override specifier 'override' did not override any base class methods"

Any help?

Product Version: Not Selected
Tags:
more ▼

asked Jun 15 '14 at 10:35 PM in C++ Programming

avatar image

DamirH
589 22 23 41

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

2 answers: sort voted first

Any UFUNCTION that has BlueprintNativeEvent, has to be overridden using [MethodName]_Implementation() as the name of the function in C++. So for you it's OnJumped_Implementation(). This is done so that the method is overridable in Blueprints or in C++.

Cheers, Nick

more ▼

answered Jun 15 '14 at 11:03 PM

avatar image

Nick Darnell ♦♦ STAFF
6k 77 36 151

avatar image DamirH Jun 15 '14 at 11:22 PM

Thanks Nick, exactly what I needed.

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

also note, that if you want to call Super class method from inside the override in your new class, you should do it this way:

 Subclass::foo_Implementation(){ 
      Super::foo_Implementation(); 
 }

if instead you invoke just "Super::foo()", it will compile but throw a nasty runtime error.

more ▼

answered Apr 26 '17 at 05:40 PM

avatar image

Arty-McLabin
848 18 40 59

(comments are locked)
10|2000 characters needed characters left
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