Actor BP not reacting to widget variable

I’m trying to open a door after a widget is closed. According to everything I’ve read, Get All Widgets of Class and the variable setup I have should work, but I keep getting the accessed none error. I tried using another actor BP and its variable to open the door instead, and that worked perfectly. I’m confused though because the setup I used for calling the widget BP and actor BP are identical. I also tried using the “On Visibility Changed” function, but that didn’t open the door either. Why will this work with another actor, but not with the widget?



Begin play does not happen when ALL actors are ready, it happens for when actor that begin play is in is ready.

So if Actor_A loads before Actor_B, and Actor_A uses get all actors of Actor_B class, it may get no actors_B at all, because none of they is yet loaded.

Because of this it is best to use middle man. In your case its safe to use player character (it loads before most of level actors).

So put your events in player character. Then widget triggers event in player character. And you can also make event dispatchers there that can be triggered etc.

That makes sense, thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.