Set View Target with Blend not working after player respawn

Hi everyone,

I’ve setup a camera independently from my character. Meaning, I have one blueprint for my player and one blueprint for my camera. The reason is simple, I want the camera to follow the player but sometimes, I it to follow a projectile or whatever. I also have it setup so that the camera stays within a camera zone regardless of where the player is located (the other reason I have it setup like this :wink: ). So when the level starts, in the character’s blueprint, I have the Set View Target with Blend node setup so that it uses the camera in my scene.

Now If I play my level, The camera will follow the player, while respecting it’s allocated zone. If I want to follow another target, no problem and if I want to come back to the player, again, no problem. Everything works fine. I’ve just implemented the respawn method found here. Basically, it detects if the player fell in a kill z Volume and respawns the player to a specified location. In the process, it will the node SpawnActor in order to create a “new” one. And this is where my problem occurs. Once the player has respawned, it goes through it’s blueprint (Begin Play, tick, etc.) and sets the Set View Target with Blend node the same way as before. But now, it doesn’t go to my camera in my scene, the camera is on the player it self.

In my character’s blueprint, I’ve checked the camera variable that I am casting and I am not getting any error messages. I’ve checked the location of that camera actor and it’s set at the proper location.

I’ve also tried setting the option Auto Activate for Player at Player 0. It works fine before a respawn is called, after that, The camera just sits there and doesn’t go back to the player even thought I am telling it to follow that target. The camera will change zones if the player is changing zones but it won’t follow the player anymore,

So Why is this not working. I’m guessing the reference to the actors have may changed but at each Event Begin play and redoes the reference to the player in the camera BP and to the camera in the player’s BP. So what am I missing here?

thanks

Nevermind… I figured it out…

When setting my target to the camera, I was using Get Player Character… I replaced it with Get Owner and now everything works fine … I had to post and then 5 minutes later find the solution… duhhh

I’m currently having this issue right now. Just how exactly did you resolve this with the Get Owner node (aka. which Get Owner node)?

Hi Vickicup,

I’m not home right now, where my project is, but as soons as I am, I will post the information.

But you can start with this video that I made : - YouTube

the link doesn’t work!