Language:
Discover
By Skill Level
By Category

GetPlayerControllerFromNetId

Choose your OS:

Syntax

[ENGINE_API](API\Runtime\Engine\GameFramework\ENGINE_API_3)APlayerController * GetPlayerControllerFromNetId
(
    UWorld * World,
    const FUniqueNetId & PlayerNetId
)

Remarks

Returns the player controller associated with this net id

the player controller if found, otherwise NULL

Returns

the player controller if found, otherwise NULL

Parameters

Parameter

Description

PlayerNetId

the id to search for

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/GameSession.h

Source

Runtime/Engine/Private/GameSession.cpp