add_teleport_system_to_pawn
Adds a full teleport system to a VR Pawn Blueprint: thumbstick input with deadzone, projectile path trace, visual marker, and teleport on release.
Instructions
Add the complete teleportation system to a VR Pawn Blueprint.
From Ch. 16: Implements the full teleport system:
InputAxis MovementAxisRight_Y (thumbstick up detection + deadzone check)
DoOnce -> StartTeleportTrace function
TeleportTrace function (PredictProjectilePathByObjectType for arc)
On release: EndTeleportTrace + TryTeleport
Visual feedback via TeleportTrace Niagara System + TeleportVisualizer
The StartTeleportTrace, TeleportTrace, EndTeleportTrace, TryTeleport functions are all created in the pawn Blueprint.
Args: blueprint_name: VR Pawn Blueprint to modify teleport_visualizer_blueprint: Blueprint to use as teleport destination marker deadzone_threshold: Minimum axis value to start teleport (prevents accidental triggers) use_projectile_path: Use projectile arc (True) or straight line (False)
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: add_teleport_system_to_pawn(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blueprint_name | Yes | ||
| deadzone_threshold | No | ||
| use_projectile_path | No | ||
| teleport_visualizer_blueprint | No | BP_TeleportVisualizer |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |