How to change from one camera to split screen when players are too far from each other ? (local multiplayer )

Hi, I want to make a local multiplayer game with one camera following all players, and when one is too far from the others it change into split screen automatically.

So in one screen you will have the same camera tha previously with the players except him and another camera with only him.
Unreal got this automatic split screen, forcing one split screen for every player in the game, or no split screen when you disable it. But I want up to 8 players on one screen and dual split screen when one of them is far.
Is it possible ??
Thanks

And I’d suggest using the get distance from actor to actor function to determine the dsitance and setup how far till it splits.

Thank you, now I will try to learn how to make a subclass of GameViewportClient, I know only blueprint coding so maybe I will have questions :slight_smile: