Calling a variable from one class Bp to another?

Not trying to sound desperate. I’m just overwhelmed at this point…I’ve seen a couple posts about this but NOTHING I do works and it’s finally become frustrating…it’s obviously extremely simple and that’s why…

I just need to create a bool variable in one class BP and pull it up in another call BP the same variable.
I HAVE NO IDEA how to get it to work.
It’s as simple as the class BP laying on the ground, I move over it…it triggers the variable and then destroys actor…but once the variable is triggered Ill have it appear in my had. (Player call BP)

I’ve read on here, looked on the wiki…I don’t know…
Can anyone please walk me through this??

Overlap event should return overlaping actor, cast that return to you BP class and set varable inside it or do any other operation.

Hey AttemptD -

So to start with I will assume you have created a class blueprint with the variables you want to reference in the second blueprint and it exist in your level. Now in the 2nd blueprint, in the My Blueprint Window, add a new Variable and roll out the Variable Type drop down menu. You will want to select Object >> [Name of your Blueprint]_C (the underscore C always exists). Name the variable as you wish. Then Get that variable in your Graph and pull of the end and you can now reference any variable and function found in that 1st Blueprint.

Hopefully that will answer your question, but if not here is the documentation on blueprint direct communication

Eric Ketchum

I’m still a tad confused but I think I understand it…I’m getting confused on which blueprint I should create the variable on, the first or the second, and then If I should set it to public i guess?? and what do you mean by get the variable in the graph pull off the end??

I’m close. thank you.

Ive got it!! :slight_smile: I figured out a way to make it work. Its a little different but none the less thank you for your help.

Hey dude, could you show me how?