/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h
Returns the player controller found while iterating through the local and available remote player controllers. On a network client, this will only include local players as remote player controllers are not available. The index will be consistent as long as no new players join or leave, but it will not be the same across different clients and servers.
static [APlayerController](API\Runtime\Engine\GameFramework\APlayerController) * GetPlayerController ( const [UObject](API\Runtime\CoreUObject\UObject\UObject) * WorldContextObject, int32 PlayerIndex )