🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

UE4, How do I Get a Boolean variable to reference from one Blueprint to another?

Started by
2 comments, last by jbadams 5 years, 7 months ago

I'm in need of making a Boolean variable public somehow, so that multiple blueprints of mine can reference when an action can and cannot be done. I searched around already, finding answers that didn't completely apply, were outdated missing their explanation images, or were simply confusing.

This is what I'd like to accomplish, without the error of course.

640328140_SC1.thumb.png.2032ce0614e388f8f03c624a02a866fb.png

I do have the "Has Weapon" variable set as visible (The eye icon is open), I am just unsure on what to do from there to allow these sword pickup BP's to reference that Boolean variable in my character blueprint.

 

Maybe I am going about this wrong; any solutions are welcome.

Advertisement

I figured it out. Just like my "Set" Boolean variables, I had to extend off of the casting of my other blueprint in which the variables originated, and typing in the variable I needed allowed me to use "Get" it as well, and there I could plug it into my branch with no problem.

SC 1.png

Thanks for taking the time to share your solution - hopefully it helps others with the same problem in future! :)

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement