change camera position when key pressed

I have a 3th person game concept and am trying to move the camera from one side of the charater to the other side when the player presses the H key on his keyboard (reason being: people sometimes like their character on the left, or right, depending on the situation) but have not been able to success so far.

how would this function look like in blueprints? I’ve already set the camera to the first starting position (to the right of the character), I’m guessing I could create a second camera and just switch between them? but this wouldn’t be smooth since if the camera could just be moved to the other side of the character, I could create an animation while transitioning to the other view.

tl;dr:

Im trying to create a camera that moves to the other side of the character and have so far been unable to get this working, how would one create this functionality?

I would do something like this

Next Position function:

Camera Positions is just an array of rotators and I just added 2 default values to it. (0,0,90) and (0,0,-90).

If you have any questions please tell me!

Edit: You can play with the InterpSpeed value from the RInterpTo node to make the transition slower or faster

1 Like

Well this tells me nothing, how do I create those nodes like Camera Postion or the one with big GET? Yes, I’m completely new to BP and programming.

That’s not the way to get a constructive response, FWIW - MacDX gave you some instructions and you shat all over it. Perhaps ask with the intentions of actually learning next time.