How to move camera's horizantal position?

Hello, I have set up my camera to zoom in while holding down the right click on the mouse. My (Third Person) character is positioned in the center of the screen, however when I zoom the camera I want the camera to move over to his right shoulder, such as the games ‘The Evil Within’ and ‘Resident Evil 4’. Thank you!

You should use SetRelativeLocation (Camera) to move the camera back in forth in relation to the character’s position.

I’m not sure the best way to do this but you should be able to simply move the camera component in your pawn class relative to the pawn. If there is a springarm component the camera is attached to, you might have to adjust some values there too.

I’m assuming the camera viewing the player is a component of the pawn class.

This goes for sideways as well as up and down. Can go for in and out too unless you have a spring arm, in which case in/out might be better to control using the springarm length, though you can also “zoom” by messing with the camera’s FoV

Your question is about setting it over the character’s shoulder though, so iArchaea’s answer should work either way. You can do this during game time using the node they suggested, or you can make it that way by default by editing the camera’s default relative location in the pawn class’ blueprint editor’s viewport.

Here’s one way to do it:

https://i.gyazo.com/8d3a7976cc92be4f5be9b6954e6ed7b0.mp4

You set an offset and interpolate until you reach it.

edit: and yeah, that’s precisely what other posters said. They beat me to it but hey, you’ve got a pic now.