/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h
Returns the pawn for the player controller at the specified player index, will return null if the pawn is not a character. This will not include characters of remote clients with no available player controller, you can iterate the PlayerStates list for that.
static [ACharacter](API\Runtime\Engine\GameFramework\ACharacter) * GetPlayerCharacter ( const [UObject](API\Runtime\CoreUObject\UObject\UObject) * WorldContextObject, int32 PlayerIndex )