How to make a camera movement when player dies?

Maxime Vézina
Fri, 29 Jan 2016 02:42:23 +0000
Cinematics & Media

Hi!

I was wondering if there’s a way to ‘‘override’’ the camera of the player and make a camera movement with it when, for example, he dies.

The game is in first person, so when the player dies, I want him to look down and make the camera go down also, while there’s a fade to black, until he respawns. For now, I have a custom death event in the blueprint of the FirstPersonCharacter, which is called when the player dies. I use the node ‘‘Disable Input’’ to prevent him from moving. I’ve tried to create a timeline followed by the node ‘‘AddLocalRotation’’ linked to the FirstPersonCamera to make it move, but nothing happens. Then, I’ve tried to put the node Unpossess before that, and it works, I see the gun go down, but not the camera, so I’m guessing that by using Unpossess, it also means that the player doesn’t look through the camera anymore.

Is there a way to make it work with a matinee maybe? But then, how do you link it to the position of the camera of the player and ‘‘override’’ a movement on it?

Thank you in advance!

Don’t hesitate to ask for additionnal information if needed also!

6 posts - 3 participants