APawn::GetPlayerState

If Pawn is possessed by a player, returns its Player State.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h

Include

#include "GameFramework/Pawn.h"

Syntax

APlayerState * GetPlayerState() const

Remarks

If Pawn is possessed by a player, returns its Player State. Needed for network play as controllers are not replicated to clients.

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