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 make two blueprints communicate

alt textSo, I'm trying to make an event trigger when I press a key, which is the "Toggle_Follow", from the player character and run the "Is Follow" in the AI_Controller. But I always get the same error and nothing happens.

alt text

alt text

Product Version: UE 4.17
Tags:
dubs01.png (138.4 kB)
dubs02.png (344.6 kB)
dubs03.png (366.3 kB)
more ▼

asked Oct 26 '18 at 07:34 PM in Blueprint Scripting

avatar image

Ricker13
8 1 2

avatar image mightyenigma Oct 26 '18 at 07:38 PM

What's the error and what does your code look like?

avatar image Ricker13 Oct 26 '18 at 08:03 PM

I edit them in. For some reason, it didn't upload the first time

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

1 answer: sort voted first

The error indicates that the Robot Cont Ref variable is empty or points to a destroyed object. First add Invalid node becord doing anything with it, to keep your code from throwing errors if it is empty or points to invalid reference. Next you must make sure that variable is getting set to a valid object before it is need by the code you have shown. Can you show code where you have set the value of that variable?

more ▼

answered Oct 26 '18 at 08:11 PM

avatar image

mightyenigma
3.8k 18 23 20

avatar image Ricker13 Oct 26 '18 at 11:54 PM

It's an Object Reference variable type, you can see it in the third image. And the AI Robot that is controlled by that controller is also set in the scene

avatar image Omar Vector Oct 27 '18 at 01:21 AM

the Obeject reference must be set , where did u set it? , its null based on the error given

(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