I’ve typed this like five times so to make a long story short:
Player interacts with note after dialogue (widget) tells them to
Note pops up on screen as a separate widget to make it easier to read
Player presses interact again to stop destroy widget
The problem here is, I created a variable in the Note widget to check if the player pressed interact a second time, so that I could run more dialogue after the note is offscreen. However I can’t for the life of me figure out why the variable isn’t working properly outside of it’s own blueprint, it keeps asking for a target, and even if i put the target as a reference to that widget it gives me an error. Any solutions?
If you want to access your widget outside from another BP and change values on it from outside then use this node here only a variable alone will not interact with the widget.
Use this here from whatever bp to access your widget:
Can you post the code where you remove this wiget ? Do you awso use this branch like on the first screenshot ? If i see this correct after the E key you set this boolean (has read) to true but nothing after it. Should the E key not close the widget ? If so set Has read + branch after the E key and if it is true close widget logic. Set Has read default value to false. Then from your other bp where you want to access this set this “Has read” to true without/no branch… Or is this boolean “has read” closing the widget somewhere else when it is set to true ? Anyway send the full code where you close this widget
Should be like this ? You can set this check me out widget to hidden and then to visible if player interacts 2 times “…to check if the player pressed interact a second time…” this way you would not even need a boolean for it… Just set visibility to show it up after the second interaction