FLocalPlayerContext::IsFromLocalPlayer

This function tests if the given Actor is connected to the Local Player in any way.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h

Include

#include "Engine/LocalPlayer.h"

Source

/Engine/Source/Runtime/Engine/Private/LocalPlayer.cpp

Syntax

bool IsFromLocalPlayer
(
    const AActor * ActorToTest
) const

Remarks

This function tests if the given Actor is connected to the Local Player in any way. It tests against the APlayerController, APlayerState, and APawn.

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