Tracking the aircraft with image processing (with DO_SET_SERVO)

Hello there. I’d like to ask you something. I have two planes. I want to fly one plane on the grid in AUTO mode and follow the plane in front with the help of the other plane’s camera. I’m going to use image processing on the second plane. Is there a mode or method I can do this? (I use Mission Planner.) Thanks to everyone who answered.

edit: I want to learn is that the plane moves in that direction with servo movement