UAbilitySystemComponent::ApplyAbilityBlockAndCancelTags

Called from ability activation or native code, will apply the correct ability blocking tags and cancel existing abilities.

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h

Include

#include "AbilitySystemComponent.h"

Source

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemComponent_Abilities.cpp

Syntax

virtual void ApplyAbilityBlockAndCancelTags
(
    const FGameplayTagContainer & AbilityTags,
    UGameplayAbility * RequestingAbility,
    bool bEnableBlockTags,
    const FGameplayTagContainer & BlockTags,
    bool bExecuteCancelTags,
    const FGameplayTagContainer & CancelTags
)

Remarks

Called from ability activation or native code, will apply the correct ability blocking tags and cancel existing abilities. Subclasses can override the behavior

Parameters

Parameter

Description

AbilityTags

The tags of the ability that has block and cancel flags

RequestingAbility

The gameplay ability requesting the change, can be NULL for native events

bEnableBlockTags

If true will enable the block tags, if false will disable the block tags

BlockTags

What tags to block

bExecuteCancelTags

If true will cancel abilities matching tags

CancelTags

what tags to cancel

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