Passing over boolean information from one blueprint to another

Hello! Just like how the title describes it, i’m trying to pass over a boolean from one blueprint (in this case, BP_Car) onto another blueprint named BP_CeilingLight1. In terms of what I looked up, I assumed that I had to make a variable with the same variable type as BP_Car. This variable is LightbulbStatus and it’s only use is to carry over the IsLightOn? value from BP_Car to the blueprint it’s supposed to be paired with.

But it seems as if said boolean, or maybe even LightbulbStatus itself didn’t pull the boolean from BP_Car since I got this error message when running.

Blueprint Runtime Error: “Accessed None trying to read property LightbulbStatus”. Node: Branch Graph: EventGraph Function: Execute Ubergraph BP Ceiling Light 1 Blueprint: BP_CeilingLight1

Is there something wrong with how I’ve tried to pass the boolean over?

It’s direct communication, you just haven’t set the reference

Ah, I see. I was wondering why I couldnt edit the reference directly from the blueprint editor, but it looks like I have to have both entities present first for it to work.

If I were to, say, pass this boolean off to multiple instances of the same secondary blueprint, would I have to individually set each and everyone of them as well?

1 Like

Yes, all copies of a reference need to have a value for it to work :slight_smile:

Unless you use something like ‘get actor of class’ in the code, then it works automatically :slight_smile: