Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Returns the player state that matches the passed in online id, or null for an invalid one. This will work on both the client and server for local and remote players.
| Name | GetPlayerStateFromUniqueNetId |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintPure, Category="Game",
Meta=(WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static APlayerState * GetPlayerStateFromUniqueNetId
(
const UObject * WorldContextObject,
const FUniqueNetIdRepl & UniqueId
)
Parameters
| Name | Remarks |
|---|---|
| UniqueId | The player's unique net/online id |