How to teleport from a blueprint to another blueprint?

So I want to make the player able to be teleported from a blueprint actor ( a platform ) to another platform.
I know I can do it in the level blueprint but I want to do it like that :
platform A blueprint :
on component begin overlap ( + input key ) → teleport to platform B
platform B blueprint :
on component begin overlap ( + input key ) → teleport to platform A

What is your question? I’d keep a reference to the target platform. Are you having a specific problem?

Hey there, i would do the following:

  • Create a variable on the platform blueprint called Teleport Platform and set it to be the type of the platform and make it instance editable
  • Create another boolean variable called Is Player On Platform (or somethign like that)
  • On Component Begin Overlap get the player controller and enable input for it, set Player On Platform to true (you might need to do a cast from Other Actor to make sure you are talking to a player)
  • Create an input action mapping to teleport on the platform and if Player On Platform is true you use Set Actor Location to the Teleport Platform’s Location.
  • On Component End Overlap get the player contorller and disable input for it, set Player On Platform to false