GetPlayerControllerFromNetId

Returns the player controller associated with this net id

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

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