Interactive Widget Blueprint

hello everyone,
I would like to know what is the logic to be able to make an interactive widget. Specifically I would like that when standing in front of an actor blueprint of a door the widget appears, in this widget there is a space to enter a password, if the wrong password is entered the door will not open, in case the correct one is entered the door will open.

thanks in advance for the answers

You could add a collision box to the door actor that creates the widget on overlap with pawn.

Then in the widget use an enterable text.
That has an event “on text changed” where you could check against a password text variable.

Set the password text variable to be expose on spawn and instance editable, so you can set it in door bp when you create the widget on overlap.

Also might want to check on tick the distance from the door to the character and remove the widget if out of range.

2 Likes

@Wildlight03 made sense.and I just tried to implement it.


but the blueprint is kind of messy ,do you want me to show?

1 Like