configure_ai_sight_radius
Set the sight and lose-sight radii on an AI-possessed pawn's or AIController's AIPerceptionComponent sight config in the editor world, with lose-sight defaulting to 1.5x.
Instructions
Set SightRadius and LoseSightRadius (default sight_radius times 1.5) on the sight config of the AIPerceptionComponent of an AI-possessed pawn or an AIController. The actor is looked up in the editor world, not PIE, so an unpossessed pawn is an error. Returns sight_radius, lose_sight_radius and sight_sense_count; 0 means no sight config, nothing changed.
Returns: { actor_name, sight_radius, lose_sight_radius, sight_sense_count }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Object name or editor label of the pawn or AIController in the editor world; the first match is used. | |
| sight_radius | Yes | New SightRadius in cm, greater than 0. | |
| lose_sight_radius | No | New LoseSightRadius in cm, the distance at which an already seen target is lost, 0 or more; default sight_radius times 1.5. |