Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/APawn
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| If Pawn is possessed by a player, returns its Player State. | GameFramework/Pawn.h | ||
T * GetPlayerState () |
Templated convenience version of GetPlayerState. | GameFramework/Pawn.h |
GetPlayerState()
Description
If Pawn is possessed by a player, returns its Player State. Needed for network play as controllers are not replicated to clients.
| Name | GetPlayerState |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
| Include Path | #include "GameFramework/Pawn.h" |
APlayerState * GetPlayerState() const
GetPlayerState()
Description
Templated convenience version of GetPlayerState.
| Name | GetPlayerState |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
| Include Path | #include "GameFramework/Pawn.h" |
template<class T>
T * GetPlayerState() const