Download

Checking Variable from a different Blueprint?

Hi!

What I want to have happen is that when the player overlaps the ScrewPile he should be able to pick up multiple screws at once. I connected OnComponentOverlap event to a boolean variable in the blueprint of the ScrewPile, and when the Event Pickup happens in the Screw blueprint I want it to check if the “Multiple Screws?” variable from the ScrewPile blueprint is true, and if it is it should pick up multiple screws.

The issue is that I can’t figure out how to get the blueprints to communicate with eachother. From what I’ve seen I think the best way is to use the Cast To-nodes, but I just can’t figure out what should be connected to the “Object” slot in this case.

Or is there a much better way to do this whole thing?