How can I use animation for my first person camera?

Hey there!

If would like to ask a question, since I lack of experience in UE4 and also it is the first time I’m doing a first person game.

So my question is: How would I animate my first person camera?

I started by using the first person template, remove the arms and the shooting stuff and added a skeletal mesh behind the camera. Then I attached the first person camera to the head bone, so it would animate with the character.

However, now I would like my character to start lying on the floor. So I play a “lay down” animation or something like that, where the player lies on the floor. The head should be rolled by somthing like 90 degree and the camera should not be controllable. I think I should use “Set Cinematic Mode” (on) to prevent user input from modifying the camera transformation.

I imagine the following: Play a “stand up” animation and the camera should always reflect the head bone transformation. But at the moment, this only works for translation, not for rotation. How can I accomplish this?

It should look like this: YouTube Video

If your character has reliable animations(no jittery/awkward movements) then you can attach a camera to the character’s head bone(by creating a socket for the head bone first.) Then you can switch between that camera and your fps gameplay camera when the animations end. Let me know if this works for you and i can give more detailed info if necessary.

Hey, thanks for the fast reply! :slight_smile:

I made a test case and you were right: It works this way. Thanks! This is what I’ve done:

For testing purposes, I made the character “attack” and let the camera follow his eyes. After that, I reset the camera. Thank you again!

Glad that it works! :slight_smile: