How to pan camera in Top Down game with Blueprint?

Hello,
I am really new to Blueprint. I am trying to figure out how to make the camera pan to follow the mouse in the Top Down template. The idea is for the camera to act the same way (for lack of a better term) as in traditional MOBA games. I wish to be able to pan the camera as the mouse reaches the edge of the screen. I assume that I would need to match the camera’s view with the cursors location. As for exactly how to do that, I am lost. I appreciate any help that can be provided. Thank you in advance.

Each player controller has a get mouse position function. you can use that to compare against the getViewportSize node to determin where on the screen you are relative to the size of the screen (IE viewportsize’s X * 0.1 will get you the left 10% of the screen in pixels.)

Compare that against the mouse position and if you are in the influence area move the players pawn (camera should be attached even if it’s a spectator pawn) based on some kind of sensitivity. You can get fancy with velocity and easing after you get the basics in.

Thanks! That makes a lot of sense. I will give it a shot and get back to you if I was able to get it working. Thanks again for the help!

I was able to determine if I was in the correct screen location but I am still lost on how to translate the camera based on the mouse location.

Since you are in a controller jut get the controlled pawn and move it. use get controlled Pawn and use the add movement node.