Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > APawn > GetPlayerState
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
Include | #include "GameFramework/Pawn.h" |
APlayerState &42; GetPlayerState&40;&41; const
Remarks
If Pawn is possessed by a player, returns its Player State. Needed for network play as controllers are not replicated to clients.