APawn::GetPlatformUserId

Returns the Platform User ID of the PlayerController that is controlling this character.