Home › Systems › AFS_UX_Teleporter
System

AFS_UX_Teleporter

Teleport targeting: areas and locations, the aiming controller ability, the indicator, and a game-state manager coordinating destinations.

What it gives you

  • Arc-based teleport targeting with a visual indicator
  • Free-form areas and fixed destination points
  • Selectable teleport targets for desktop
  • Destination coordination across players

Requires

AFA_Sounds AFL_Libraries AFM_Abilities AFM_AutoDestroy AFM_Settings AFM_Spline AFM_State AFM_Teleport AFS_UX_Select

Required by

AFS_UI_Menu AF_Examples

18 assets116 API members

Description

Teleport is split between two modules on purpose. AFS_UX_Teleporter handles targeting — where the player is aiming and what counts as a valid destination. AFM_Teleport handles execution — the fade, motion and relocation. You can replace either without touching the other.

Destinations come as three actors. BP_TeleportPlane covers a flat region and BP_TeleportSpline a region you draw as an outline on the floor, following ramps and steps; the player may land anywhere within either. BP_TeleportLocation is a fixed spot, with Use Rotation for a defined arrival direction. All three have Allow Select, so the select ability (laser, fingertip or click) can teleport there too and the same destinations work on desktop.

What makes something a destination is the teleport interaction component on it, so any object can be one. BPC_Interaction_Teleport_Scene on a seat or a vehicle, with Attach To Target, carries the player along; while attached, smooth movement and turning are blocked.

Setup

  1. Confirm BPC_ControllerAbility_Teleport is on the motion controllers and BPC_PawnAbility_Teleport_Character on the pawn.
  2. Place BP_TeleportPlane or BP_TeleportSpline actors over walkable regions, and BP_TeleportLocation actors at fixed destinations.
A teleport area placed over a walkable region
AFS_UX_Teleporter_setup.pngA teleport area placed over a walkable region
A teleport area placed over a walkable region

Usage

Adding a destination

See Add a teleport area.

Making a seat

Add BPC_Interaction_Teleport_Scene to the seat, point its target component the way the player should face, and turn on Attach To Target if the seat moves.

Desktop support

Use the _Select variants so destinations respond to click as well as to the arc.

Custom destinations

Implement Interface_TeleportLocation on your own actor.

Key properties

PropertyWhen to change
Arc and indicator settingsOn BPC_ControllerAbility_Teleport, to change reach and appearance
Fade, motion, tracking levelOn AFM_Teleport's pawn ability, for comfort options
Arrival rotationOn teleport locations, for seats and marked positions

Extending

Implement Interface_TeleportLocation for custom destinations, or derive from BP_TeleportArea for custom region behaviour.

Example map

Map_Examples_Teleporter covers areas, locations and nav-mesh teleport. Map_Examples_Teleport covers the execution options.

Troubleshooting

The arc finds nothing. No teleport area or location covers the region, and nav-mesh teleport is not enabled.

API reference

Every blueprint asset in this module. Expand an asset to see its members.

Blueprints

BP_TeleportArea4 members
extends Actor

Base actor for a flat patch of floor a player may teleport onto: a plane carrying the grid material, a box registered as a navigation obstacle, and a timeline that fades the grid in and out over a tenth of a second. Project Grid Location To Ground Location traces downwards so a landing point sits on the floor rather than on the grid. It carries no interaction of its own, so place one of its two subclasses or subclass it for an area of your own.

KindNameSignatureDescription
varGrid MaterialRequiredMaterialInterfacedefines what the teleport area looks like
varVisibilityRequiredboolenables the player to perceive the teleport area in the application
fnProjectGridLocationToGroundLocation(GridLocation: Vector, out GroundLocation: Vector)Returns the point where a 50 centimetre trace straight down from the given location meets the floor, so a target on the grid ends up on the ground under it. Hands back the location it was given when the trace hits nothing.
eventShowTeleportArea(Set: bool)Unhides the actor and fades the grid in over a tenth of a second, or fades it out and hides the actor again once the fade has finished. The default teleport area calls it from its On Show Teleporter handler.
BP_TeleportLocation6 members
extends Actor · implements Interface_TeleportLocation

A fixed spot a player can teleport to, drawn as a glowing landing pad with a light column: an outer ring and soft fill (SM_OuterCircle, the trace target), a docking ring the size of the player's landing ring (SM_InnerCircle), a beam that fades upward with a pulse (Beam) and direction chevrons that only show when Use Rotation is set (SM_Arrow). All parts share one M_TeleportLocation instance. Its teleport interaction (interface variant) asks this actor through Interface_TeleportLocation where to land: always the middle of the marker (Mesh Handle). With Use Rotation the pawn arrives facing the marker's direction, otherwise the way the teleporter points. The interaction also decides when the marker is shown and takes collision. Turn on Allow Select to also teleport here with the select ability. Aiming at the marker with the teleporter or the select ability plays the hover look (Set Hovered).

KindNameSignatureDescription
varUse RotationSettingsboolWhether this location dictates the rotation the pawn arrives with. The construction script shows the direction chevrons when it is set and passes it to the teleport interaction as Force Rotation.
varAllow SelectSettingsboolLets the select ability (laser or finger) teleport to this marker too. The marker is then shown and keeps its trace collision.
fnApplyLocationSettings()Copies Use Rotation into the teleport interaction's Force Rotation. Called by the construction script.
eventShowTeleportLocation(Set: bool)Unhides the actor and fades the marker in over a tenth of a second by driving the Opacity of the shared material, or fades it out and hides the actor again.
eventSetHovered(Valid: bool)Plays the hover look in or out over a tenth of a second: the material's Highlight, the docking ring growing to 1.12 and the light column to 1.2 of its height.
eventSetSelectAllowed(Allow: bool)Turns select teleporting on or off at runtime: sets Allow Select and blocks or unblocks the select interaction. Showing and collision follow through the teleport interaction.
BP_TeleportPlane3 members
extends Actor · implements Interface_TeleportLocation

Teleport area on a flat plane. Aim the teleport arc at the grid and the pawn lands on the ground under it; aims past the edge land on the nearest point of the plane. Scale the actor to size the area (the plane is 1 m, with the actor at a corner). Its teleport interaction decides when it is shown (Show Behavior) and when it takes trace collision; the plane only fades on On Show Teleporter and switches collision on On Targetable Changed. Turn on Allow Select to also teleport onto it with the select ability, which keeps it shown and targetable.

KindNameSignatureDescription
varAllow SelectTeleport PlaneboolLets the select ability (laser or finger) teleport onto the plane too. The plane is then shown and keeps its trace collision, so it also stops select traces aimed at things below it.
eventShowTeleportPlane(Set: bool)Unhides the actor and fades the grid in over a tenth of a second by driving the material's Opacity, or fades it out and hides the actor again. Repeated calls with the same value are ignored.
eventSetSelectAllowed(Allow: bool)Turns select teleporting on or off at runtime: sets Allow Select and blocks or unblocks the select interaction. Showing and collision follow through the teleport interaction.
BP_TeleportSpline12 members
extends Actor · implements Interface_TeleportLocation

Teleport area shaped by a spline drawn on the floor. The construction script lays a grid inside the closed outline, drops every grid point onto the ground and builds one procedural mesh from it, so the area follows ramps, steps and platforms and fades out softly at its edge. Edit the Outline spline in the viewport to shape it. Like the plane, the teleport interaction decides when the area shows (Show Behavior) and when it takes trace collision; the grid fades in and out with a short timeline, so nothing ticks. Aims outside the outline land on the nearest outline point. Turn on Allow Select to also teleport onto it with the select ability.

KindNameSignatureDescription
varGrid MaterialTeleport SplineMaterialInterfaceMaterial drawn on the area. A dynamic instance is made from it in the construction script, and the area fades its Opacity parameter. Vertex alpha fades the edge.
varAllow SelectTeleport SplineboolLets the select ability (laser or finger) teleport onto the area too. The area is then shown and keeps its trace collision, so it also stops select traces aimed at things below it.
varCell SizeTeleport SplinefloatSpacing of the grid the area is built from, in centimetres. Smaller follows curves and steps more closely but costs more triangles and construction time.
varTrace UpTeleport SplinefloatHow far above the actor the downward ground trace starts, in centimetres. Raise it when parts of the area lie on platforms higher than this.
varTrace DownTeleport SplinefloatHow far below the actor the ground trace reaches, in centimetres. Grid points with no ground in this range are left out.
varMax StepTeleport SplinefloatLargest height difference inside one grid cell, in centimetres. Cells with a bigger step, such as the side of a platform, are left out so the area has no walls.
fnAddAreaVertex(Location: Vector, Alpha: float, out Index: int)Traces down at a location and adds one vertex on the ground with its normal, world-aligned UVs and the given alpha. Returns its index, or -1 when there is no ground.
fnBuildMesh()Builds the procedural mesh: a world-aligned grid at Cell Size, points inside the outline traced onto the ground, outside neighbours pulled onto the outline with alpha 0, and two triangles per cell unless the cell's height range is above Max Step.
fnIsInsideOutline(Location: Vector, out Inside: bool)Whether a point lies inside the sampled outline, in X and Y.
fnBuildOutline()Samples the Outline spline into Outline Points, about every half cell (8 to 512 points).
eventShowTeleportSpline(Set: bool)Unhides the actor and fades the grid in over a tenth of a second (Timeline into Set Grid Opacity), or fades it out and hides the actor again. Repeated calls with the same value are ignored.
eventSetSelectAllowed(Allow: bool)Turns teleporting by pointing and clicking on the area on or off. Stores Allow Select and blocks or unblocks the select interaction under the reason AllowSelect.

Components

BPC_ControllerAbility_Teleport29 members
extends BPC_ControllerAbility

Hand ability giving one motion controller the teleport arc. Holding the teleport button spawns the teleport arc (a spline line drawn with M_TeleportArc: a cyan light with dashes flowing to the target, red and thin while nothing valid is hit) and a landing indicator and traces a straight or projectile line each frame; the trigger teleports the pawn there. Add it to a motion controller and choose the line style, the surface rule, any surface or navigation mesh, and how the landing rotation is picked. Where the trace lands on a teleport interaction, that interaction decides the destination instead.

KindNameSignatureDescription
varTeleport on Neutral ThumbstickSettingsboolWhether letting the thumbstick fall back to its neutral position executes the teleport at the current target rather than only closing the search. Meant to be paired with Teleport Deactivate set to Neutral Thumbstick, as the showroom's left controller does.
varTeleport Line StyleSettingsE_Teleporter_SearchTypesShape of the line the teleporter searches along. Projectile predicts an arc launched from the helper's start handle, Straight fires a plain line trace between the ability's line start and end.
varTeleport ModeSettingsE_Teleporter_StyleWhat counts as valid ground when the surface has no teleport interaction of its own. Teleport On Any Surface accepts surfaces lying within 30 degrees of horizontal, Nav Mesh snaps the point onto the navigation mesh and drops the hit when the projection fails, and None lands only on teleport targets (BP_TeleportLocation, BP_TeleportPlane, BP_TeleportSpline) and ignores every other surface.
varTeleport TimeSettingsfloatSeconds a teleport onto plain geometry takes, always with a fade out and back in. Targets carrying a teleport interaction ignore it and use their own Teleport Duration.
varUse Teleport MotionSettingsE_Teleport_MotionHow much of the journey the player sees when teleporting onto plain geometry: None cuts across behind the fade, Indication leans the pawn towards the destination, Full Motion flies it the whole way. Targets with a teleport interaction supply their own motion instead.
varTeleport Rotation TypeSettingsE_Teleporter_RotationWhere the arrival rotation comes from while searching: None keeps the pawn's current rotation, Rotate By Hand follows how far the controller has been rolled since the search opened, Rotate By Thumbstick aims with the stick and holds the last rotation while the stick rests inside its deadzone. A target that forces its own rotation overrides all three.
varTeleport DeactivateSettingsE_Teleporter_DeactivateWhen the search closes. Only On Execute keeps the line up until the trigger is pulled, Neutral Thumbstick also ends it as soon as the thumbstick returns to centre.
varSound StartSoundSoundBaseSound played from this component when the search opens, ahead of the looping hold sound on the teleport helper. Leave empty for a silent start.
varSound CloseSoundSoundBaseSound played when the trigger is pulled with nothing solid under the line, so the teleporter closes without moving the pawn. Leave empty for silence.
varSound TeleportSoundSoundBaseSound handed to the pawn's teleport ability when teleporting onto plain geometry. Targets carrying a teleport interaction play their own sound instead; leave empty for silence.
varMax Trace LengthSettingsfloatLaunch speed given to the predicted teleport arc, in centimetres per second, which is what decides how far ahead the player can aim. Read only by the Projectile line style.
varMax Interpolation DistanceSettingsfloatDistance in centimetres above which the aim point jumps straight to a new hit instead of easing across to it. Shorter moves ease at Interpolation Speed; left at zero, every move is a jump.
varInterpolation SpeedSettingsfloatSpeed at which the aim point eases towards a new hit, higher being snappier. Applies only while the move is shorter than Max Interpolation Distance.
varLaser Visual Interp TimeStylefloatSpeed at which the line settles on the colour and thickness wanted for the current state, higher reaching the new look sooner. Despite the name it is an interpolation speed, not a duration in seconds.
varMapping Context DirectionInputST_MappingContext_SideInput mapping contexts, one per hand side, added at priority 10 for as long as a search is open and removed when it closes. Carries the thumbstick binding that aims the arrival rotation.
varMapping Context TeleporterInputST_MappingContext_SideInput mapping contexts, one per hand side, added when the component is activated and removed when it is deactivated. Carries the bindings that open the teleporter and execute it, and is applied only on the locally controlled pawn.
fnSetLaserVisualsLaser()Applies the standard teleporter line look: cyan and slightly widening towards the end while the search is on something solid, red and thinner while it is pointing at nothing. The arc material M_TeleportArc adds the glow, the flowing dashes and the fade at the hand.
fnSetLaserColorLaser(WantedColor: LinearColor, RadiusStart: Vector2D, RadiusEnd: Vector2D)Interpolates the spline line towards the given colour and towards the start and end radii, at the rate set by Laser Visual Interp Time. Does nothing until the line has been spawned.
fnSetLocationValuesTeleport()Moves the aim point and the arrival rotation towards the latest hit, easing at Interpolation Speed. Jumps instead of easing on the first frame of a search and when the new point is further away than Max Interpolation Distance; with no blocking hit it follows the end of the trace.
fnTraceTeleport(out TraceResult: HitResult)Runs the search trace for the current line style and hands back what it found: a straight line trace, or a predicted projectile arc from the start handle whose trace end is set to the last point of the arc. Actors following the pawn are ignored either way.
fnSetHoverStateLaser()Classifies whatever the trace hit. A teleport interaction that accepts this ability becomes the current target, is told to tick its highlight and has its own teleport and indicator locations written into the hit result; anything else is judged by Teleport Mode, which can project the point onto the navigation mesh or clear the hit.
fnTryToTeleportTeleport()Executes the teleport at the current aim point. A target with a teleport interaction is asked to do it, so that component's duration, fade and sound apply; plain geometry goes to the pawn's teleport ability with this component's settings; and a line pointing at nothing only plays the close sound.
fngetAllAttachedActorsAbility(out Actors: Actor[])Returns the teleport indicator spawned for the current search, so the motion controller counts the preview among the actors this ability keeps in the world. The parent implementation returns nothing at all.
fngetActorsToIgnoreController Ability(out Result: Actor[])Returns every actor registered as following the pawn, hands and carried objects included, so the teleport trace passes through them instead of stopping on them.
fngetTeleportLocationManagerControl(out TeleportManager: BPC_Helper_GameState_TeleportManager)Returns the teleport manager living on the game state, caching it on this component the first time. Adds the manager to the game state when there is not one yet, so it always comes back valid.
fngetDesiredRotationControl(out Rotation: Rotator)Returns the rotation the pawn would arrive with at the current aim point. A target whose interaction forces rotation settles it outright; otherwise Teleport Rotation Type chooses between the pawn's rotation, the roll of the hand since the search opened, and the thumbstick direction.
eventInitiateControllerAbility(Pawn: Pawn, MotionController: Actor, Side: E_Side)Called by the motion controller once it has spawned this ability, handing over the owning pawn, the controller actor and the hand side. Extend it to add setup that needs to know which hand the teleporter belongs to.
eventSetLaser(Set: bool)Raises or lowers the teleport line. The spline helper is spawned the first time it is switched on and expanded over 0.3 seconds; switching it off collapses the spline again over the same time and leaves the helper in place for the next search.
eventStartTeleporter(Set: bool)Opens or closes the teleport search, ignoring any call that does not change the state. Opening enables ticking, raises the line, plays the start and hold sounds, takes focus of the motion controller, adds the direction mapping context, runs a first trace, spawns the indicator and tells the teleport manager a source is active; closing undoes all of it.
BPC_Interaction_Select_Teleport6 members
extends BPC_Interaction_Select

Select interaction that teleports the selecting pawn. Hovering shows the teleport indicator, turned with the hand; selecting teleports. When the owner also has a teleport interaction (BPC_Interaction_Teleport or a child), the landing point, the indicator position and the teleport settings come from it, so an area's ground projection and clamping and a location's fixed spot apply to selecting too. Without one the pawn lands on the hit point.

KindNameSignatureDescription
fnUpdateShowRequest()Tells the owner's teleport interaction to show the owner while this select interaction is active: Set Show Request with reason Select, true while active and false while blocked. Does nothing when the owner has no teleport interaction.
fnTeleportSelectingPawn(SourceInfo: ST_SourceInfo, HitResult: HitResult, out Handled: bool)Teleports the selecting pawn through the owner's teleport interaction (its landing point, rotation and settings) and returns true, also while that interaction is blocked, so an actor can be selected while its teleport arc target is switched off. Returns false when the owner has none.
fngetIndicatorLocation(ImpactPoint: Vector, out IndicatorLocation: Vector)Where to draw the indicator for a hit point: asks the owner's teleport interaction, otherwise the hit point itself.
fngetTeleportComponent(out TeleportComponent: BPC_Interaction_Teleport)Returns the owner's teleport interaction, or none.
eventOnHighlightTick_Event(SourceInfo: ST_SourceInfo, TraceResult: HitResult)Shows the indicator at the owner's indicator location and turns it with the hand.
eventOnSelect_Event(Source Info: ST_SourceInfo, Hit Result: HitResult)Teleports through the owner's teleport interaction; falls back to the hit point when the owner has none.
BPC_Interaction_Teleport19 members
extends BPC_Interaction

Interaction marking its owner as a teleport destination: the arc hovering it asks for the landing location, the rotation and where to draw the indicator, and Teleport To Location drives the pawn's teleport ability with this component's duration, fade, motion, tracking level and sound. It also decides when its owner is shown and when it must take trace collision, and tells the owner through On Show Teleporter and On Targetable Changed, so the actor only fades and switches collision. Other components show the owner with Set Show Request (the select-teleport interaction does). The base hands the impact point straight back, so add the scene or interface variant, or subclass it. Registers with the game state's teleport manager so it knows when a teleporter is searching.

KindNameSignatureDescription
varTeleport DurationSettingsfloatDetermines the time the teleport takes in seconds.
varTeleport FadeSettingsE_Teleport_FadeDefines how the camera handles the teleport.
varTeleport MotionSettingsE_Teleport_MotionDetermines how much of the movement of the pawn during teleport is shown to the player.
varTeleport LevelSettingsE_Teleport_TrackingLevelAdjusts which part of the pawn is teleported to exactly the chosen location.
varSound TeleportSoundSoundBaseSpecifies the sound effect upon teleport execute.
varShow BehaviorSettingsE_Teleporter_ShowBehaviorWhen the owner is shown. Always keeps it shown; Show On Teleporter Source Activation shows it while any teleporter is searching. A show request (Set Show Request) shows it in both cases. Change it at runtime with Set Show Behavior followed by Update Show State.
varForce RotationSettingsboolWhether the arrival rotation is dictated by this target rather than by how the player aimed. When set, Teleport To Location takes the rotation from Get Desired Teleport Rotation and the teleporter's thumbstick or hand rotation is discarded.
varShow IndicatorSettingsboolWhether the teleporter keeps its floating indicator visible while this target is under the line. Turn it off for targets such as a seat that already make the arrival point obvious.
fnSetShowRequest(Set: bool, Reason: name)Adds (Set true) or removes a named reason to keep the owner shown and targetable, and updates the state. Works while this interaction is blocked, so a select-only setup still shows the owner.
fnUpdateShowState(Force: bool)Works out Is Shown (Show Behavior Always, a searching teleporter or any show request) and Is Targetable (a searching teleporter or any show request) and fires On Show Teleporter and On Targetable Changed for the ones that changed. Force fires both regardless. Call it after changing Show Behavior at runtime.
fngetShowIndicatorTarget(out Show: bool)Returns whether the teleporter's indicator should stay visible over this target. Plain accessor over Show Indicator.
fngetDistanceTo2DLocationTarget(ReferenceLocation: Vector2D, out TeleportLocation: Vector2D)Asks the owning actor, through the Teleport Location interface, for the point on the ground plane a teleport should be sent to. In spite of the name it hands back a location rather than a distance, and leaves the output at zero when the owner does not implement that interface.
fngetDesiredIndicatorLocationTarget(ImpactLocation: Vector, out DesiredLocation: Vector)Returns where the teleporter should draw its indicator for a given impact point, which here is the impact point unchanged. Overridden by children that want the preview somewhere other than where the line landed.
fngetDesiredTeleportRotationTarget(out TeleportRotation: Rotator)Returns the rotation the pawn should arrive with, which in this base implementation is zero. Child components override it to read the rotation of the target itself.
fnTeleportToLocationTeleport(Pawn: Pawn, ImpactLocation: Vector, InputRotation: Rotator)Teleports the pawn here through its teleport ability, using the point from Get Desired Teleport Location and this component's duration, fade, motion, tracking level and sound. The rotation comes from Get Desired Teleport Rotation when Force Rotation is set, and from the rotation the caller aimed with otherwise.
fngetDesiredTeleportLocationTarget(ImpactLocation: Vector, out DesiredLocation: Vector)Returns where the pawn should land for a given impact point, which in this base implementation is the impact point unchanged. Child components override it to send the pawn to a scene component or to ask the owning actor.
fngetForceRotationTarget(out ForceRotation: bool)Returns the Force Rotation setting. Internal accessor used when working out the rotation the pawn arrives with.
fnCanTeleportTarget(SourceInfo: ST_SourceInfo, out CanTeleport: bool)Returns whether this target accepts a teleport, which here is true whenever the interaction is active; the Source Info is not looked at. Override it to turn particular pawns or hands away.
eventTeleportSourceActivated(Set: bool)Called by the teleport manager when the first teleporter starts searching and again when the last one stops, and with false when this interaction is blocked. Stores the state, broadcasts On Teleporter Source Activation Changed and updates the shown and targetable state.
BPC_Interaction_Teleport_Interface4 members
extends BPC_Interaction_Teleport

Teleport destination that asks its owning actor where to land, forwarding all four location questions through the teleport location interface and falling back to the impact point and the owner's own transform when the owner does not implement it. Add it when the destination has to be worked out in the actor's own graph, as the default teleport area does.

KindNameSignatureDescription
fngetDistanceTo2DLocationTarget(ReferenceLocation: Vector2D, out TeleportLocation: Vector2D)Asks the owning actor for its ground-plane teleport point through the Teleport Location interface, exactly as the parent does, and leaves the output untouched when the owner does not implement it.
fngetDesiredIndicatorLocationTarget(ImpactLocation: Vector, out DesiredLocation: Vector)Returns the indicator position the owning actor asks for through the Teleport Location interface. Falls back to the owner's actor location rather than to the impact point when that interface is not implemented.
fngetDesiredTeleportRotationTarget(out TeleportRotation: Rotator)Returns the arrival rotation the owning actor asks for through the Teleport Location interface. Falls back to the owner's own actor rotation when that interface is not implemented.
fngetDesiredTeleportLocationTarget(ImpactLocation: Vector, out DesiredLocation: Vector)Returns the landing point the owning actor asks for through the Teleport Location interface. Falls back to the impact point the line hit when the owner does not implement that interface.
BPC_Interaction_Teleport_Scene10 members
extends BPC_Interaction_Teleport

Teleport destination that takes its landing point from a tagged scene component on the owner rather than from where the arc struck. Point it at that component by tag (Name Of Target Component) and the pawn lands on the component's world location and always arrives with its rotation, because the component is handed to the pawn teleport, which then takes position and rotation from it; Force Rotation makes no difference here. Attach To Target lets a chair or a moving platform carry the pawn along. Add it to seats and other places with a fixed facing; for a spot where the player may choose the direction, use the interface variant (as BP_TeleportLocation does).

KindNameSignatureDescription
varName Of Target ComponentTargetnameComponent tag picking the scene component the pawn is teleported onto (Get Target Component). The pawn arrives at its location and with its rotation.
varName Of Indicator ComponentTargetnameComponent tag picking the scene component the teleport preview is drawn at (Get Indicator Component).
varAttach to TargetSettingsboolWhether the pawn stays attached to the target component after arriving, so it rides along when that component moves. Use it for seats and moving platforms; leave it off for a fixed spot on the floor.
fngetIndicatorComponentComponents(out SceneComponent: SceneComponent)Returns the first scene component on the owning actor tagged with Name Of Indicator Component, which is where the teleport preview is drawn.
fnTeleportToLocationTeleport(Pawn: Pawn, ImpactLocation: Vector, InputRotation: Rotator)Teleports the pawn onto the target component, passing the component and Attach To Target through so the pawn can ride it once it arrives. The pawn teleport takes position and rotation from the component, so the arrival always faces the component's direction. Duration, fade, motion, tracking level and sound come from this component as in the parent.
fngetTargetComponentComponents(out SceneComponent: SceneComponent)Returns the first scene component on the owning actor tagged with Name Of Target Component.
fngetDistanceTo2DLocationTarget(ReferenceLocation: Vector2D, out TeleportLocation: Vector2D)Returns the target component's world position flattened to X and Y, ignoring the reference location it is handed.
fngetDesiredIndicatorLocationTarget(ImpactLocation: Vector, out DesiredLocation: Vector)Returns the world location of the indicator component, so the teleporter draws its preview there instead of where the line landed.
fngetDesiredTeleportRotationTarget(out TeleportRotation: Rotator)Returns the world rotation of the target component. The pawn arrives with this rotation in any case, because Teleport To Location also hands the component to the pawn teleport.
fngetDesiredTeleportLocationTarget(ImpactLocation: Vector, out DesiredLocation: Vector)Returns the world location of the target component rather than the point the line hit, so the pawn always lands on the same spot on this actor.

Helper

BPC_Helper_GameState_TeleportManager4 members
extends ActorComponent

Game state component holding every teleport interaction in the level and the teleport sources currently searching. Interactions register with it as they activate, and it tells them all when the first source starts and when the last one stops, which is how destination markers appear the moment anyone raises a teleport arc. Added to the game state on demand, so there is no need to add it by hand.

KindNameSignatureDescription
eventTeleporterSourceActivated(Source: Object)Called by a teleporter as it starts searching. Records that source and tells every registered teleport interaction that a source is now active, which is what makes teleport targets show themselves.
eventTeleportSourceDeactivated(Source: Object)Called by a teleporter as it stops searching. Drops that source, and only tells the registered teleport interactions to stand down once no source is left, so targets stay up while a second hand is still aiming.
eventRegisterTeleportComponent(NewItem: BPC_Interaction_Teleport)Adds a teleport interaction to the manager's list so that it hears about teleporters starting and stopping. Called by the interaction itself when its component is activated.
eventUnregisterTeleportComponent(NewItem: BPC_Interaction_Teleport)Removes a teleport interaction from the list and tells it the source has gone, so a target deactivated mid-search hides itself again. Called by the interaction when its component is deactivated.
BP_Helper_ControllerAbility_Teleport2 members
extends BP_Helper_ControllerAbility

World-side helper the teleport hand ability spawns for itself. Carries the arc's start and end handles, the looping hold sound and the teleport input actions, forwards the start and trigger presses back to the ability, and reports the thumbstick direction the ability aims the landing rotation with. Spawned and destroyed with the ability; not something to place.

KindNameSignatureDescription
varController AbilityBPC_ControllerAbility_TeleportThe teleport ability that spawned this helper, handed over on spawn. The helper's input events hold no logic of their own; they call straight into this ability.
fngetThumbStickDirection() → Vector2DReturns the current thumbstick axes for this helper's hand side, read from the sided input action. The teleport ability uses it to aim the arrival rotation.
BP_Helper_TeleportIndicator8 members
extends Actor

Landing preview the teleport ability spawns where a teleport will land. It uses the Teleport Location's meshes and material in a smaller, dimmer version: a glowing pad, a ring, a low light column and a direction chevron (hidden unless a rotation type was given at spawn). It is a subtle cyan where the landing is valid and dim red where it is not, and the whole preview shrinks to a small dot while the landing is invalid or the target hides the indicator. Scales itself in and out over three tenths of a second and destroys itself once it has gone. Spawned by the teleport ability and by the select-driven teleport area rather than placed by hand.

KindNameSignatureDescription
varTeleport Rotation TypeE_Teleporter_RotationWhich rotation scheme the teleporter that spawned this indicator is using, passed in on spawn. Read once at Begin Play, where None hides the direction arrow, so changing it later has no effect.
fngetDesiredColor() → LinearColorReturns the colour the indicator ought to be showing: cyan while the current aim point can be teleported to, red while it cannot.
fnSetColor(Color: LinearColor)Sets one colour (Color Default) on the ring's material. Not called by the framework; the Tick colours all parts.
eventSetDesiredRotation(DesiredRotation: Rotator)Stores the rotation the indicator should show. Called every frame by the teleporter with the rotation the pawn would arrive with.
eventSetCanTeleport(CanTeleport: bool)Stores whether the current aim point can be teleported to, which is what decides the colour through Get Desired Colour. Called every frame by the teleporter.
eventSetShowIndicator(ShowIndicator: bool)Stores whether the indicator should be on show. Called every frame by the teleporter, which passes on the Show Indicator setting of the target under the line, or true over plain geometry.
eventDisappear()Called by the teleporter when the search closes. Runs the appear timeline backwards and destroys the actor once it has shrunk away, so an indicator is never reused.
eventAppear()Called by the teleporter once the indicator has been spawned. Unhides the actor and scales it up over 0.3 seconds.

Interface

Interface_TeleportLocation4 members
extends Interface

Contract letting an actor answer where a teleport aimed at it should put the pawn: the landing location, the landing rotation, where to draw the indicator and the nearest point to a location in two dimensions. Implement it on an actor whose destination has to be worked out in its own graph and add the interface teleport interaction, which is what calls it.

KindNameSignatureDescription
fnTeleport_getTeleportLocation2DTeleport(ImpactLocation: Vector2D, out TeleportLocation: Vector2D)Implemented by an actor to say where on the ground plane a teleport should land, in X and Y. The default teleport area answers with the closest point on its own grid, which pulls an aim near the edge back onto the area.
fnTeleport_getTeleportRotationTeleport(out TeleportRotation: Rotator)Implemented by an actor to say which way a pawn teleporting to it should face. Read only when the teleport interaction forces rotation, and reports zero when left unanswered.
fnTeleport_getTeleportLocationTeleport(ImpactLocation: Vector, out TeleportLocation: Vector)Implemented by an actor to say where a pawn teleporting to it should land, given the point the line hit. The default teleport area answers with that point projected down onto the ground; left unanswered it reports the world origin.
fnTeleport_getIndicatorLocationTeleport(ImpactLocation: Vector, out IndicatorLocation: Vector)Implemented by an actor to say where the teleport preview should be drawn for the point the line hit. Called by the interface teleport component; left unanswered it reports the world origin, so implement it deliberately.

Settings

BP_Value_Settings_Boolean_Teleport1 members
extends BP_Value_Settings_Bool

Ready-made toggle for whether teleport is available at all, activating or blocking the teleport ability on both hands.

KindNameSignatureDescription
eventValue_setBooleanValue_Boolean(SourceInfo: ST_SourceInfo, Value: bool)Applies the teleport setting. Every registered teleport ability is blocked or unblocked under the Settings Disabled blocker, so switching it off removes teleporting without disabling the ability and without disturbing anything else that blocks it.
BP_Value_Settings_Boolean_Teleporter_Execute1 members
extends BP_Value_Settings_Bool

Ready-made toggle for how a teleport is committed: by letting the thumbstick fall back to neutral, or by pulling the trigger. Releasing the stick is what most players expect.

KindNameSignatureDescription
eventValue_setBooleanValue_Boolean(SourceInfo: ST_SourceInfo, Value: bool)Applies the teleport execution setting, switching each registered teleport ability's deactivate mode between the two values of E_Teleporter_Deactivate: whether an open teleport search closes only once the trigger is pulled, or also as soon as the thumbstick returns to centre.
BP_Value_Settings_Boolean_Teleporter_Line1 members
extends BP_Value_Settings_Bool

Ready-made toggle between the projectile arc and a straight line for the teleport aim. The arc reads better over uneven ground; the straight line is easier to aim precisely.

KindNameSignatureDescription
eventValue_setBooleanValue_Boolean(SourceInfo: ST_SourceInfo, Value: bool)Applies the teleport line setting, switching each registered teleport ability's line style between the predicted arc and the straight trace.
BP_Value_Settings_Float_TeleportTime1 members
extends BP_Value_Settings_Float

Ready-made slider for how long a teleport onto plain geometry takes, fade included. Shorter is more comfortable for most players, which is why it is worth exposing rather than fixing.

KindNameSignatureDescription
eventValue_setFloatValue_Float(SourceInfo: ST_SourceInfo, Value: float)Implemented by a float value to take a new value from the pawn described by the source info. Sliders call it as their handle moves; the drag state reads the value as 0 to 1 across its own range.
BP_Value_Settings_Integer_Teleport_Rotation1 members
extends BP_Value_Settings_Integer

Ready-made selector for where the arrival rotation comes from: keep the pawn's current facing, or aim it with the hand while the arc is up. Keeping the current facing is the comfortable default.

KindNameSignatureDescription
eventValue_setIntegerValue_Integer(SourceInfo: ST_SourceInfo, Value: int)Implemented by an integer value to take a new value from the pawn described by the source info. Drop-downs call it when one of their options is chosen.