How to allow character to take over another camera/teleport to location

So I created a BP_Vent for it eventually and added the following components:

  • Cubes (to form the vent structure)
  • Two collision boxes, one for entry and one for exit (To trigger an event to enter/leave the vent, you might want to make them two-sided though which is easy, you would just use something like “isInVent boolean variable” and alter the functionality based on this variable)
  • Two scene components, one for entry and one for exit (Defines the location, where you want to teleport the player)

The components:

The logic:

Then in your Character BP create a function that handles entering/leaving the vent. I realized that the mesh itself by default does not collide with the environment, so the functionality is really basic. You just make the capsule smaller to fit the vent and teleport the character inside.

As I said, this is very basic and you’ll definitely want to build upon it. If you had any more questions let me know.

2 Likes