GetPlayerControllerFromNetId

Returns the player controller associated with this net id

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/GameSession.h"

Source

/Engine/Source/Runtime/Engine/Private/GameSession.cpp

Syntax

APlayerController * GetPlayerControllerFromNetId
(
    UWorld * World,
    const FUniqueNetId & PlayerNetId
)

Remarks

Returns the player controller associated with this net id

Returns

the player controller if found, otherwise NULL

Parameters

Parameter

Description

PlayerNetId

the id to search for