UGameplayAbility_CharacterJump::CancelAbility

Canceling an non instanced ability is tricky.

Windows
MacOS
Linux

Override Hierarchy

UGameplayAbility::CancelAbility()

UGameplayAbility_CharacterJump::CancelAbility()

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbility_CharacterJump.h

Include

#include "Abilities/GameplayAbility_CharacterJump.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/Abilities/GameplayAbility_CharacterJump.cpp

Syntax

virtual void CancelAbility
(
    const FGameplayAbilitySpecHandle Handle,
    const FGameplayAbilityActorInfo * ActorInfo,
    const FGameplayAbilityActivationInfo ActivationInfo,
    bool bReplicateCancelAbility
)

Remarks

Canceling an non instanced ability is tricky. Right now this works for Jump since there is nothing that can go wrong by calling StopJumping() if you aren't already jumping. If we had a montage playing non instanced ability, it would need to make sure the Montage that it played was still playing, and if so, to cancel it. If this is something we need to support, we may need some light weight data structure to represent 'non intanced abilities in action' with a way to cancel/end them.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss