> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/ai-tree/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/ai-tree/nodes/decorators/cone-check.md).

# Cone Check

### Description

Decorator checking objects within the cone.

**To create it**, right-click on the node and select <mark style="color:purple;">Add Decorator/Cone Check</mark>.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FMKxYkTUPKWNrvDf4biAC%2FCone%20check%201.png?alt=media&amp;token=05e949fd-4450-4c0c-b98c-4384e654ce77" alt=""><figcaption><p>How to create this decorator</p></figcaption></figure>

This decorator has a number of fields, that are highlighted in picture below.

<figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FB9FVBuOqw7BbBDOZJfEv%2FCone%20check%202.png?alt=media&amp;token=f5a44467-10dd-4018-b001-9db95bc38d3e" alt=""><figcaption><p>Fields</p></figcaption></figure>

### Fields

| Name              | Description                                                                                                                 |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Node Name         | Name of node                                                                                                                |
| Flow Control      | During the execution of the node check, if the value has changed and the check outputs a different value, it exits the node |
| Inverse Condition | Flips the condition                                                                                                         |
| Cone Origin       | Position of the origin                                                                                                      |
| Cone Direction    | Direction of the cone                                                                                                       |
| Observed          | Key that us being observed                                                                                                  |
| Cone Half Angle   | Angle between height of the cone and it's lateral surface. Marked as alpha in picture below.                                |

<div align="center"><figure><img src="https://2203000093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGOxTM7Aj9oiVaIINrEkE%2Fuploads%2FQlQxRfY3SsWjpOqOOa4n%2FCone%20half%20angle.jpg?alt=media&amp;token=d53798f2-f017-47e1-9746-6b7fb3d98ffc" alt="" width="194"><figcaption><p>Cone half angle (alpha)</p></figcaption></figure></div>

{% hint style="info" %}
For more information about Flow Control visit ["Decorators"](/ai-tree/nodes/decorators.md) tab.
{% endhint %}
