APawn::GetNetOwningPlayer

Return the owning [UPlayer](API\Runtime\Engine\Engine\UPlayer) (if any) of this actor.

Windows
MacOS
Linux

Override Hierarchy

AActor::GetNetOwningPlayer()

APawn::GetNetOwningPlayer()

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

Syntax

virtual UPlayer * GetNetOwningPlayer()

Remarks

Return the owning UPlayer (if any) of this actor. This will be a local player, a net connection, or nullptr.

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