UGameplayAbility::IsLocallyControlled

True if the owning actor is locally controlled, true in single player

Choose your operating system:

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

UFUNCTION(BlueprintCallable, BlueprintPure=false, Category=Ability,
          Meta=(ExpandBoolAsExecs="ReturnValue"))
bool IsLocallyControlled() const

Remarks

True if the owning actor is locally controlled, true in single player