add_line_trace_node
Adds a line trace node to a Blueprint for physics collision detection. Configure trace type to check single or multiple hits along a line, useful for hit detection and visibility checks.
Instructions
Add a Line Trace node (raycast from point A to point B).
Line traces check for physics collision along a line. Useful for hit detection, visibility checks, etc.
Args: blueprint_name: Blueprint name trace_type: Trace function: "LineTraceSingleByChannel" - single hit by collision channel "LineTraceSingleByObjectType" - single hit by object type "SphereTraceSingleByChannel" - sphere sweep "BoxTraceSingleByChannel" - box sweep "MultiLineTraceSingleByChannel" - all hits node_position: Optional graph position
KB: see knowledge_base/01_BLUEPRINT_FUNDAMENTALS.md#overview Example: add_line_trace_node(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_type | No | LineTraceSingleByChannel | |
| node_position | No | ||
| blueprint_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |