/Engine/Source/Runtime/Engine/Classes/Engine/LocalPlayer.h
Returns the logical local player index where 0 is the first LocalPlayer that was created.Bydefault, this uses index in the game instance array. This index is used for gameplay purposes but will not be correct for platform functions.
virtual int32 GetLocalPlayerIndex() const