x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can't cast to npc camera.

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.

Product Version: UE 4.21
Tags:
more ▼

asked Jan 09 '19 at 01:41 PM in Blueprint Scripting

avatar image

krovatka
1 2 1

(comments are locked)
10|2000 characters needed characters left

4 answers: sort voted first
more ▼

answered Jan 09 '19 at 01:54 PM

avatar image

Narghile
1.6k 72 35 107

(comments are locked)
10|2000 characters needed characters left

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.

alt text

bp01tobp02.jpg (220.5 kB)
more ▼

answered Jan 10 '19 at 05:35 AM

avatar image

krovatka
1 2 1

avatar image Narghile Jan 10 '19 at 05:58 AM

Hi Mate

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 Narg

avatar image krovatka Jan 10 '19 at 06:27 AM

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.

(comments are locked)
10|2000 characters needed characters left

Hi Mate

Here is a simple solution.

I have done this in Player Character, Topdown Project.

Player View when Started

alt text

If I press X

alt text

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

alt text

Getting the Camera

alt text

Blueprint with Flipflop to switch between Cameras"

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

alt text

11.png (1.8 MB)
12.png (1.4 MB)
13.png (602.7 kB)
14.png (65.1 kB)
15.png (221.4 kB)
more ▼

answered Jan 10 '19 at 06:46 AM

avatar image

Narghile
1.6k 72 35 107

(comments are locked)
10|2000 characters needed characters left

Yeah! Thank you.

Node "Get All Acters of Class" helped me!

more ▼

answered Jan 10 '19 at 06:50 AM

avatar image

krovatka
1 2 1

avatar image Narghile Jan 10 '19 at 06:55 AM

Hi Mate

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

Hope it works well.

Narg

avatar image krovatka Jan 10 '19 at 07:11 AM

How to mark it? I can't find.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question