ULocalPlayer::GetLocalPlayerIndex

Returns the logical local player index where 0 is the first LocalPlayer that was created.