UGameplayAbility::HasAuthorityOrPredictionKey

True if we are authority or we have a valid prediciton key that is expected to work

Windows
MacOS
Linux

References

Module

GameplayAbilities

Header

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

Include

#include "Abilities/GameplayAbility.h"

Source

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

Syntax

bool HasAuthorityOrPredictionKey
(
    const FGameplayAbilityActorInfo * ActorInfo,
    const FGameplayAbilityActivationInfo * ActivationInfo
) const

Remarks

True if we are authority or we have a valid prediciton key that is expected to work

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