Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/APawn
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
| Include | #include "GameFramework/Pawn.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Pawn.cpp |
UFUNCTION (BlueprintCallable, Category="Pawn")
bool IsLocallyViewed() const
Remarks
Is this pawn the ViewTarget of a local PlayerController? Helpful for determining whether the pawn is visible/critical for any VFX. NOTE: Technically there may be some cases where locally controlled pawns return false for this, such as if you are using a remote camera view of some sort. But generally it will be true for locally controlled pawns, and it will always be true for pawns that are being spectated in-game or in Replays.