How do I change player controller for strategy game

Hello my name is and I’m currently making a strategy game for a paid project but I’ve come in to a bit of difficulty with my player controller. I start off as the usual strategy game controller with a top down view of the world and I can click on units and they highlight. I’ve managed to get the current player controller to possess a unit when I press e on a unit but it still has all the top down view controls how do I make it so that the possessed unit has first person controls after I possess it?

you need to handle the input inside of the pawn. so when you are in the top down view selecting units you want a pawn that just has a camera and can fly around and handle the flying around input in that pawn class. so for example you want to have your classes set out somewhat like this:

public class AMasterCamera : public APawn
{

};

public class AInfantryUnit : public ACharacter
{

};

public class AVehicleUnit : public AWheeledVehicle
{

};

etc.

So handle all the input in the player classes. How would I get mouse position of controlling player inside the characters?

You mean get the position of the pawn in screen space? for selecting of pawns right?