RealDocs

ACharacter::NotifyJumpApex

function Engine Since 4.0
#include "GameFramework/Character.h"
Access: public Specifiers: virtualENGINE_API

Description

Called by CharacterMovementComponent when the character reaches the peak of a jump. Broadcasts OnReachedJumpApex to notify any bound delegates.

Caveats & Gotchas

  • This notification is opt-in — CharacterMovementComponent::bNotifyApex must be set to true, otherwise this function is never called.
  • bNotifyApex is automatically reset to false after the apex is detected to avoid repeated calls. If you need apex detection for every jump, re-set bNotifyApex to true inside your NotifyJumpApex override or in OnJumped_Implementation.

Signature

ENGINE_API virtual void NotifyJumpApex();

Return Type

void

Example

Enable apex notification and override the handler C++
void AMyCharacter::Jump()
{
    Super::Jump();
    GetCharacterMovement()->bNotifyApex = true;
}

void AMyCharacter::NotifyJumpApex()
{
    Super::NotifyJumpApex();
    // Trigger a slow-motion effect at the jump apex
    UGameplayStatics::SetGlobalTimeDilation(GetWorld(), 0.3f);
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.