Home › How do I…? › How to add a teleport area

How to add a teleport area

Advanced Framework Pro ships teleport as placeable actors: BP_TeleportPlane and BP_TeleportSpline for a walkable region and BP_TeleportLocation for a fixed spot. Place them, and the pawn's teleport ability does the rest. By the end of this you will have a region the player can teleport onto.

At a glance

Level
├─ BP_TeleportPlane / BP_TeleportSpline   over the walkable region (plane or drawn outline)
└─ BP_TeleportLocation                    fixed destination; Use Rotation, Allow Select
Pawn (shipped pawns have it)
├─ motion controllers: BPC_ControllerAbility_Teleport
└─ BPC_PawnAbility_Teleport_Character

Steps

  1. Place a BP_TeleportPlane and scale it over a flat walkable region, or a BP_TeleportSpline and draw its outline on the floor for ramps, steps and irregular shapes.
  2. For a fixed destination, place a BP_TeleportLocation. Turn on Use Rotation to set the direction the player faces on arrival.
  3. Confirm the pawn has a BPC_ControllerAbility_Teleport on its motion controllers and a BPC_PawnAbility_Teleport_Character on the pawn.
A teleport area placed in the level
howto_teleportarea_01.pngA teleport area placed in the level
A teleport area placed in the level
The teleport arc and landing indicator on a valid target
AFS_UX_Teleporter_result.pngThe teleport arc and landing indicator on a valid target
The teleport arc and landing indicator on a valid target

Notes

Turn on Allow Select on any of the three when the destination should also be reachable with the select ability (laser, fingertip or click), not only with the teleport arc.

For a seat or a ride, add BPC_Interaction_Teleport_Scene to the object and turn on Attach To Target: the player moves and turns with it, and smooth movement and turning are blocked until the next teleport takes them off.

Implement Interface_TeleportLocation on your own actor to make it a valid destination without using the shipped classes.