How do I create a third person shooter camera system?
I see a lot of people posting about this same setup but we haven't been answered correctly yet, not even once. I've looked at both the first person shooter and third person blueprint starter packages. The problem I'm having and I'm sure other are having is how can we have a chase camera in the third person shooter that doesn't rotate around the player mesh but turns the player mesh instead and setup camera zooming. Sometime along the lines of a Gears of War third person shooter chase camera system. Is this possible in Blueprint or does it require c++ coding?
To get a fixed camera with the mouse and gamepad input controlling the zoom of the camera (can change this to the mouse wheel or another button), replace the sections in the Third Person Blueprint with the following:
How to Use
se the WASD keys to move, and then the Mouse up/down to zoom in and out - note that there's no limits on the Spring Arm component target length, I'll let you add these in :D
How it Works
ccess the CameraBoom (a Spring Arm Component), whenever you've moved the mouse/gamepad up or down, get its current Target Arm Length, add it together with the LookUp amount (this could be positive or negative), and then set the current Target Arm Length to this. You could scale the difference between these two floats to zoom quicker.
e're assuming that you'll be facing the camera in only the X axis when moving around here. We access how much you've pressed the W/S keys (MoveForward, can be positive/negative) and add it to the X direction of a new vector, and add this to move the Player Pawn forward. We do the same with the A/D keys, and add it to the Y direction of a new vector, and add this to move the Player Pawn sidewards.
If you have any questions, feel free to post them below :)
nd I've just realised, I missed that you wanted to use the Mouse to control the player mesh rotation, silly me. I'll have to add this in soon :)
answered Mar 28 '14 at 07:02 PM
Wuhuuu... I finally fixed this shit myself after spending an entire day looking around.. Omg... And then it was there inside the first person template. Go to MyCharacter blueprint defaults and then see screens for instructions.
Under character movement.
Now you should be all good. No need for changing anything in the eventgraph (in regards to movement)
Zoom is equally as easy. Tutorial here: https://www.youtube.com/watch?v=U88LWbVv9BY
Follow this question
Once you sign in you will be able to subscribe for any updates here