add_pawn_sensing_component
Add PawnSensing to a Blueprint for AI perception, configuring sight radius, hearing threshold, and peripheral vision to detect players.
Instructions
Add a PawnSensing component to a Blueprint for AI perception.
Ch.10: PawnSensing enables enemies to both see and hear the player.
OnSeePawn and OnHearNoise events fire when player is detected.
HearingThreshold: detection radius for sound (default 1600 units)
SightRadius: max sight distance
PeripheralVisionAngle: field of view half-angle in degrees
Args: blueprint_name: Enemy character Blueprint hearing_threshold: Sound detection radius in cm see_pawns_in_dark: Whether to detect pawns in dark areas sight_radius: Max sight detection radius peripheral_vision_angle: Half-angle of sight cone in degrees
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: add_pawn_sensing_component(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sight_radius | No | ||
| blueprint_name | Yes | ||
| hearing_threshold | No | ||
| see_pawns_in_dark | No | ||
| peripheral_vision_angle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |