Raed, the solution I came up with was to use the UE4 tutorial solution (from the link in tthe first post on this page and mix that with the super smash bros. camera tutorial https://forums.unrealengine.com/attachment.php?attachmentid=35405&d=1429292244
So pretty much at event begin play i get all actors of class for the player character (up to 4 players)… and then I use that as P1 P2 P3 P4 (if a reference is not valid I automatically make him to be p1)… from those 4 variables I then get the max of the float array, just like in that picture from the smash bros tutorial, but then i hook it up to a switch on int and if for example P1 & P3 are the furthest away (max of float array) then I set P1 & P3 to be what the UE4 tutorial was using as P1 & P2… but I renamed the variables so that they don’t clash… so I have P1,P2,P3,P4 & then CameraP1 & CameraP2 so that any 2 players can be camerap1 or camerap2
So basically I get whichever characters are furthest away and make them to be the P1 & P2 references that the UE4 tutorial uses… it has worked so far for me…
What type of game are you making?