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.
answered May 18 '14 at 07:23 PM
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**
answered May 18 '14 at 07:30 PM
Lovecraft_K ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here