How to make the camera switch from first person to third person when in cover

So basically I am trying to start up a small Thief like game and want to have the camera switch from being lodged in the characters head to the original spot when the character is in cover. How would one be able to do this?

I would do it by creating two cameras and putting them where I wanted them. Then, using blueprints, I would set up a flip flop to set the active camera when an animation is played or something else that happens when you want the camera change. I have no idea how to do it if it was in C+. Do note that the change is rapid and has very little transition so you might need to add a delay and an animation in.

You have few ways to do it

  1. Moving your camera component in actor, (I think there better animation options here
  2. Have different camera components for each mode and activate and deactivate them (its harder to animate this one or else you smooth it out with the code in CalcCamera in actor in C++)
  3. Make camera actor that follows player in some way ans simply change possition
  4. As mentioned in point 2, you can hard code in C++ camera behavior in CalcCamera without need of camera actors or components

Point 1 and 2 is easiest solutions. You may also try to change camera properties if can give you effect as you want