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"

Right Object to Cast from Widget Blueprint to NPC Blueprint?

Hi,

I want my NPC to become agressive when the player gives certain ansers during NPC-Dialogue. For this i want to cast (from my widget blueprint) to the NPC when a certain button from the widget is clicked, but it does not work. I think i have the wrong object, but i do not know what other objects I should put there. alt text

Product Version: UE 4.16
Tags:
more ▼

asked Aug 18 '17 at 02:28 PM in Blueprint Scripting

avatar image

Deira
1 2 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I use Get Player Pawn to set my data variables in UI. You might give that a try instead of getting the character.

more ▼

answered Aug 18 '17 at 03:00 PM

avatar image

cmarston74
296 6 7 10

avatar image Deira Aug 18 '17 at 03:08 PM

Thanks, but it doesn't work either. Maybe it has something to do with the direction i am trying to communicate being different (widget to npc)?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I communicate to the pawn from widgets regularly so I'm sure it's just an oversight somewhere. I quick trick to figure out what your accessing is to run a Print String node at the end and attach the pawn/character reference to it so you can see what reference your trying to communicate with. Once you know if your communicating with the correct reference it should work fine.

more ▼

answered Aug 18 '17 at 04:45 PM

avatar image

cmarston74
296 6 7 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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