I want to make an actor say something to the player

I want to set up a system that when the “e” key is pressed while looking at an actor, the player loses control over the character and a text message is shown on the player’s screen, and when the “e” key is pressed again it proceed to the next phrase until there are nothing else to show, then the player uses the “e” key again to end the interaction and the game continue normally.

You can simply create a widget with the text you want to highlight and customize to your liking, includes several blueprints and widgets. For you as an example.

I would like to make more than one widget with one line of text each, and then when you press the “e” key it switches to the next widget until it gets to the last one and you press “e” again to close it, I’m sorry if it’s hard to understand, i just started using UE and im not used with the programming logic.

Here is an example of it: