Get camera to follow two characters

Hi, so I’ve been working on a fighting game in UE, and I’ve been trying to figure out how to make the camera follow both characters at once. My idea was to have an actor place exactly between them, and have the camera follow that instead. Unfortunately, that idea didn’t work, so I ask this: how is it possible to get the camera to follow both characters?

well you ll need a little mor math than just the middle,
if you have the middle of their position, you ll have to adjust backward if they get more distant from each other.
for exemple, let s say your player are on the XoY plane, you ll have to adjust your camera Z position.
you can do this maybe using a springarm component for your camera, and changing the length of the arm to keep the player in the frame.