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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Blueprint to Blueprint Communication


I am trying to figure out how I can get my blueprint to check for a value in an array in another blueprint (like a dlookup), say for example if the array has the number '2' in it. If true I want my blueprint to do x, if false I want it to add the number 2 to the array. I hope that makes sense!

Product Version: UE 4.16
more ▼

asked Aug 12 '17 at 08:52 PM in Blueprint Scripting

avatar image

Double Bind
3 2 3

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

2 answers: sort voted first

You probably need direct blueprint communication.

Create a reference variable in the blueprint without the array and set the type to the other blueprint. Drag both blueprints into your level and select the one with the reference variable in it and you should find the variable under Default. Click on the dropdown menu and select the other blueprint and you should be ready to go.

more ▼

answered Aug 12 '17 at 10:25 PM

avatar image

562 18 24 41

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

This really depends on where your variables/logic exist.

If you know at design time which blueprint's need to communicate you can follow Fjelgnu's advice and just point custom variables at each other in instances in the map.

If these exist in the playerController/gameMode/etc then you need to dynamically get these with appropriate nodes and case them to your specific version then you can just get the values.

Otherwise, typically you would use an event to get a reference to another Actor's blueprint (onHit for example) or just get all actors of a type and check a tag or state to find what you want.

Knowing your situation more would make it easier to give a definite answer here.

more ▼

answered Aug 14 '17 at 03:03 AM

avatar image

2.6k 98 16 96

(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