UAbilitySystemComponent::InternalTryActivateAbility

Attempts to activate the given ability, will only work if called from the correct client/server context

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

bool InternalTryActivateAbility
(
    FGameplayAbilitySpecHandle AbilityToActivate,
    FPredictionKey InPredictionKey,
    UGameplayAbility ** OutInstancedAbility,
    FOnGameplayAbilityEnded::FDelegate * OnGameplayAbilityEndedDelegate,
    const FGameplayEventData * TriggerEventData
)

Remarks

Attempts to activate the given ability, will only work if called from the correct client/server context

Attempts to activate the ability. -This function calls CanActivateAbility -This function handles instancing -This function handles networking and prediction -If all goes well, CallActivateAbility is called next.

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