ive been trying to make a toggle-able camera so the player can change the camera in 1st or 3rd person. the problem is that when in 3rd person the player cannot look up but you can when you toggle back to 1st person. this is an issue as my game is a shooter and not being able to aim your gun in 3rd person might be a problem in combat .
Are both cameras children of the camera boom?
I don’t use multiple cameras in my games I just use the one camera and I move it around.
You can try it. … saves you from ahving to set active cameras.
In your characterBP, instead of adding a camera… add an arrow and make sure its a child of the boom (or at least has the same parent as the camera). Move the arrow to where you want it (the tail will be the front of the camera).
Once the arrow is where you want it… you can simply use your blueprints to (get location of ARROW) and then Set location of the camera to the got location of arrow. Add another arrow to the original camera position so that on your toggle it sets it back… thats how i do it anyway.
You should post your replies as comments not as new answers… convert those to comments.
Anyway, this works for me in a TPS game. I made a quick version of it since i have many camera positions in macros.
Here is a quick screenshot of basic switch and it works fine for me
usually FCommand keys are attached to debugging options. i use C for my testing purposes. as you can see, it will move around. Its important that you use UsePawnControlRotation, else it wont pitch up. the problem is that the mesh is not rotating up because there is no extra logic, which of course is needed. but for the camera issue, this is it.