Button triggering character transportation to another area

Hi guys!
Please help this desperate girl :smiling_face_with_tear:
I want to create a game in UE 5. Let’s assume that the map will be a house.
I will have a menu with buttons, each one representing an area of the map, which will be the rooms (ex: there will be a button written “bedroom”, another button written “kitchen”, and so on). I want that, when clicking on these buttons, the character will automatically go to the area/room I chose.
Unfortunately, I can’t find a tutorial teaching this. I might not find one showing exactly what I’ve described, but if I found something similar, it would help.
Since I’m new in UE, I don’t really know what to look for. Could someone give me a direction (on what to do, or what to search for)?
Thanks in advance!

Hi @lailabentes! Welcome to the forums!

So you’ll want to look for something like “Interact” or something like that. If it’s first person, you can use the “OnClicked” event in the button actor. Then on that event, you’ll use “Get Player pawn” and then “SetLocation”, and then put in the exact location you want to teleport to. :slight_smile:

Maybe try looking up “interaction” and “teleport”. They’re both very basic principles, and if you want something that will give you these for sure, try this official tutorial :slight_smile:

1 Like

Thank you very much for your answer!!
But I didn’t express myself in the best way, sorry.
In fact, i think my character will be the camera (is it possible? because it won’t be necessary to navigate the model, there will be static scenes, and each environment will have a positioned camera). So, what I need, in fact, is that when the user selects the environment he wants to go to in the menu, a camera switch takes place (from the camera in the environment he was in, to the camera in the environment he selected).
I’ve saw something about “attaching a camera to a pawn”, could this be the way?

Anyway, your answer will help me with other things :))