add_on_see_pawn_event
Bind the AI's PawnSensing 'On See Pawn' event to detect when the player is spotted, then set a blackboard key and update the chase state.
Instructions
Bind the 'On See Pawn' event from a PawnSensing component.
Ch.10: OnSeePawn fires when the AI spots the player in its sight cone. Wire this to set the PlayerCharacter blackboard key and update chase state.
Args: blueprint_name: Enemy Blueprint name pawn_sensing_component: Name of PawnSensing component node_position: Optional [X, Y] graph position
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: add_on_see_pawn_event(blueprint_name="/Game/MCP_Test/BP_Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_position | No | ||
| blueprint_name | Yes | ||
| pawn_sensing_component | No | PawnSensing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |