Switcing Player Cameras

Hey, I was wondering how I would be able to switch my character’s camera on the press of a key. But also, I would need to change the character’s controller rotation yaw also when the key is pressed, because I want the player to have free-look in third person, but not in first person. I am new to blueprints, so I don’t have much of a clue.

This is my character’s viewport:

Thanks in advance!

Set up your inputs in project settings
In the player character blueprint:

On key press , flipflop node to toggle active camera

For first person view set use controller rotation yaw to false
For third person view set use controller rotation yaw to true

If you need further help, I have this working and can show images of the blueprints.

In my blueprint, I am checking if the player has the pistol equipped and switching to first person. But if you want, you can toggle from first to third person view with the flipflop node.

That worked perfectly, thanks so much! :slight_smile: