build_trace_interaction_blueprint
Sets up a trace-based interaction system in a Blueprint by adding a trace macro, key input, line trace, and hit result break, then compiles it.
Instructions
Build a complete trace-based interaction system from Ch.14.
Creates the full example from the book:
Adds a 'Trace Locations' macro (camera position + range ahead)
Adds keyboard input event (default: E key)
Adds LineTraceByChannel connected to the macro outputs
Adds Break Hit Result to access the Hit Actor
Compiles the Blueprint
Args: blueprint_name: Target Blueprint (usually FirstPersonCharacter) trace_range: How far the trace reaches in cm (default 300cm) trace_channel: Trace channel to use input_key: Key to trigger interaction (default "E")
KB: see knowledge_base/26_CHAOS_PHYSICS_AND_DESTRUCTION.md#overview Example: build_trace_interaction_blueprint()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_key | No | E | |
| trace_range | No | ||
| trace_channel | No | Visibility | |
| blueprint_name | No | BP_TraceInteractor |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |