UAbilitySystemComponent::GiveAbilityAndActivateOnce

Grants an ability and attempts to activate it exactly one time, which will cause it to be removed.

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

FGameplayAbilitySpecHandle GiveAbilityAndActivateOnce
(
    FGameplayAbilitySpec & AbilitySpec
)

Remarks

Grants an ability and attempts to activate it exactly one time, which will cause it to be removed. Only valid on the server!

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