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?

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

Thanks Nick, exactly what I needed.

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.