Camera follow player only on one axis, while in volume.

Hey there!

So I have a blueprint, called CameraTransitionVolume. It contains a volume(box trigger), and a camera. So far I can have the game switch to the camera inside the volume while the player is inside of the volume, and then back to the character controller when they leave, that’s working. What I am currently trying to do, is just have the camera move along the x axis on an offset according the the players x. It’s a 3d game, but I’m trying to achieve a cinematic, silent esq camera.

Here is my blueprint so far:
229099-
As you can tell, when the player enters the volume, we set a Boolean to true, and false when the leave. Then we give control to the camera. Now event tick, checks to see if the player is in the volume, and if they are, offset the cameras x axis based on the players location. :slight_smile: Any help would be greatly appreciated.

it looks like you are on the right track… but I’m not sure why you are referencing child actors in both of your Set View Target with Blend

Set View Target with Blend is a bit weird, you don’t actually call the camera directly at all… all you need is a reference to the actor. that contains the camera… UE4 will then find the active camera component

In the first Set View Target, just use a reference to the Camera Actor in New View Target… in the second, use a reference to the Player Character (the one you cast to) in New View Target

Also, I think the overlap events will be enough to trigger the camera switching. So… unless you are using the boolean for something else… you can delete it entirely from the overlap functions and tick

Thanks for the reply. The camera switching is working completely as expected, that’s not the issue I am having. The issue I am having is moving the camera along an axis. No matter what I’ve tried the camera goes on the otherside of the map with the code I currently have. It switches to the camera just fine, but the camera moves really far away.

I managed to fix it, as you can see in the picture, I forgot to connect some nodes.