# Can't cast to npc camera.

**URL:** <https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945>\
**Category:** Cinematics & Media\
**Tags:** Switch, cast-to, unreal-engine, Blueprint, question\
**Created:** [January 9, 2019, 1:41pm UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945 "2019-01-09T13:41:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![krovatka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krovatka](https://forums.unrealengine.com/u/krovatka)\
**Post date:** [January 9, 2019, 1:41pm UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/1 "2019-01-09T13:41:08Z")

</div>

I want to make interact. And switch camera to another npc

When my character interact with 1 npc, character camera switch to camera of 2 npc. How to make it? I can’t build right nodes.

Sorry for strange screenshot. I don’t know what I need for you help.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 9, 2019, 1:54pm UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/2 "2019-01-09T13:54:19Z")

</div>

Hi

Have you looked these up?

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Regards

---

<div class="post-metadata">

**Author:** ![krovatka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krovatka](https://forums.unrealengine.com/u/krovatka)\
**Post date:** [January 10, 2019, 5:35am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/3 "2019-01-10T05:35:10Z")

</div>

Yes. I have.

But this video show switch cameras within one blueprint.

But, I want, that 1 blueprint will be intermediary. And character camera switch to 2 blueprint

I want to make it because, i want to separate NPC window. When I interact with npc into scene, I will jump to individual scene with individual backgrount and interface etc.

 ![264806-bp01tobp02.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/4/b84e2f14112920fe8a25aa03e85397280e0be8a7.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 10, 2019, 5:58am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/4 "2019-01-10T05:58:53Z")

</div>

Hi

I did it before in a Level where I jumped to an external camera to show a camera view when they looked at a Security Monitor.

This may be a little different, as I did not take control of the camera, it was on a loop of turning left and right.

Is it this type of thing you are after?

Regards

---

<div class="post-metadata">

**Author:** ![krovatka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krovatka](https://forums.unrealengine.com/u/krovatka)\
**Post date:** [January 10, 2019, 6:27am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/5 "2019-01-10T06:27:32Z")

</div>

Maybe. Did you use CAST TO node for Security Monitor? How did you jump from monitor blueprint to external camera on level?

Maybe it is the same solution for me.

I am sure, that I need to use CAST TO node. But I can’t build right connection.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 10, 2019, 6:46am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/6 "2019-01-10T06:46:36Z")

</div>

Hi

Here is a simple solution.

I have done this in Player Character, Topdown Project.

**Player View when Started**

 ![264814-11.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/9/ad93e6eae98d742fe1d14e3b7e91dc80a7c9bed9.jpeg)

**If I press X**

 ![264815-12.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/c/55ceacc49a50bd1c2bf87a920b34aca55df8fbbe.jpeg)

With this Blueprint, I still have control over my character, so you would need to run more scripting to change control to new actor.

Below is the Camera BP and scripting

**Camera BP**

 ![264816-13.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/1/5f1ef4fdf7ee3b14849d7ca33babb15fe864d08e.jpeg)

**Getting the Camera**

 ![264817-14.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/6/4d6c38b9fe05534e3f912bf046c9249d2475057d.png)

**Blueprint with Flipflop to switch between Cameras"**

You will need to turn off ‘Context Sensitivity’ to get ‘Set View Target With Blend’

 ![264818-15.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/2/0221f3da8673b225afa31d9d9f0bc71e1b6c807c.png)

---

<div class="post-metadata">

**Author:** ![krovatka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krovatka](https://forums.unrealengine.com/u/krovatka)\
**Post date:** [January 10, 2019, 6:50am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/7 "2019-01-10T06:50:43Z")

</div>

Yeah! Thank you.

Node “Get All Acters of Class” helped me!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 10, 2019, 6:55am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/8 "2019-01-10T06:55:40Z")

</div>

Hi

No problems, just mark it resolved so other people know.

Hope it works well.

---

<div class="post-metadata">

**Author:** ![krovatka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@krovatka](https://forums.unrealengine.com/u/krovatka)\
**Post date:** [January 10, 2019, 7:11am UTC](https://forums.unrealengine.com/t/cant-cast-to-npc-camera/440945/9 "2019-01-10T07:11:42Z")

</div>

How to mark it? I can’t find.
