[SOLVED] How to use a BP to change float values in a different BP?

I was wondering if somebody would be able to walk me through communicating between blueprints in UE4 4.9.2.

I’ve tried for a few hours to use various tutorials around the net only to get some sort of error that isn’t covered in the video. I’m assuming this is because of differences in the engine versions.

What I’d like to know (specifically) is how to use one blueprint to modify a float value in another blueprint. I’d like to stand in an area and, using a key input such as pressing “E”, toggle a cloud cover float I have in a different blueprint between two values.

My apologies if this is a bit of a basic question, but I’m completely new to blueprint communications. Thanks for the help in advance.

You need to access an instance of the other Blueprint to change values in it. This is easy if you already have a reference to the Blueprint (for example because it’s a component). Similarly, you can access the Controller from the controlled Pawn (and vice versa) or the Animation Blueprint from the Character.

If there’s no such direct connection, you can use GetAllActorsOfClass to get a reference to any Blueprint of a given class.

Once you have the reference to the Blueprint instance, you can easily get or set variables in the Blueprint.

If you still have questions, it’s probably best if you post screenshots of your setup, so we can get a better understanding of what you’re trying to do.

This is exactly it. I had this bothering me for a while, but now I believe I fully understand how to go about accomplishing this goal. Thank’s again so much!