Need help with teleporter and interface

My last few blueprint experience is 2 years ago and I’m still a noob with blueprints, I need some advise.

I want to make two doors, if you go near one of them you can press the key “E” and that will teleport to the other door.

I have modified the blueprint “BP_Security_Screen_Button” from the BlueprintExamples (the blueprint where the button is in the room and you change through the view of the security cameras). I used this part to show the text “press E” if you come to the door near and press the key E. This works fine.

But because I need the reference of the 2 doors(becasue the position of the destination door) I have to make the teleporting in the level blueprint and so I need to make a interface with that I have my problems.

(the input/output) boolean in the interface function is only for test)

So my problem is:

-How do I implement the interface in the level blueprint? Should I use the interface function or an event? What for a event?

-I need to check the reference of one door in a list of doors and to point to the destination door (I want to use this for multiple doors).

I am not going to answer your question with this answer, but I will give you an alternative or two that might be better.

First, if you just want to teleport somewhere you can simply add a billboard or something that you put at the location you want to teleport to. Then just teleport using the location of the billboard.

Another option is to link two doors to eachother and then teleport between them. To do this in the editor, simply make a variable in the door actor called something like OtherDoor and expose it (click the eye next to the variable so it opens). Then in the editor you can click on the door and add a reference to the other door in the dropdown menu of the exposed variable. You have to do this with both doors if you want to allow teleportation back again. This way the doors can be moved, but the teleportation will always be correct.

I hope this helps.

Ref: Another option is to link two doors to eachother and then teleport between them. To do this in the editor, simply make a variable in the door actor called something like OtherDoor and expose it (click the eye next to the variable so it opens). Then in the editor you can click on the door and add a reference to the other door in the dropdown menu of the exposed variable.

That’s the right answer.

Thank you, I got it to work with the linking like you told.