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!
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.
answered Aug 12 '17 at 10:25 PM
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.
answered Aug 14 '17 at 03:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here