How can i make an unlockable area?

I’m new to unreal engine and i’m working on a simple 3D side scroller game. How can make an area that unlocks after entering a triggerbox? And how can i make to show a messagge when the same area unclocks? I know that i need some boolean variables, but i don’t know what i need to do with them…

P.S. I’m sorry for my english, i’m italian and it’s hard for me to write in english, but i understand it.

For an unlockable area, you can create a blocking volume to keep the player from entering. Then, you need a blueprint for your unlocking trigger box. This unlocking blueprint will need your trigger volume and an actor variable that is an actor reference, call it “Destroyed Object”. This variable also needs to be a public variable.

So in your Triggering Blueprint use an “On Overlap Event” When the player overlaps, use “Destroy Actor.” The target for this destroy should be the public actor variable you created. Add the Blocking volume and Unlocking trigger blueprint to your scene. With the Unlocking BP selected, you should find that in it’s details you can see the “Destroyed Object” actor variable you created, set that to reference the blocking object.

Now, when you overlap the Unlocking volume, the Destroy actor event should kill your blocking volume and let the player enter.

As for the message, youll have to create a widget with your message, cast it to the screen when you enter your Unlocking PB. Add a delayed destroy self to this widget so it only lasts temporarily. You’ll also want to destroy the unlocking BP afterward so you cant trigger it more that once.

Thanks u helped so much ^^