> For the complete documentation index, see [llms.txt](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-required/detection-component.md).

# Detection Component

The Detection Component gives AI the ability to detect other targets and players.

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/eyuPzLFhZJGaOXaWPqt9/DetectionComponent.png" alt=""><figcaption></figcaption></figure>

## Using the Detection Component

The Detection Component gives AI the ability to detect other targets and players. This is done by setting which layers an AI sees as targets. An AI can then determine how to react to detected targets by relying on its Faction Relation.&#x20;

{% hint style="success" %}
Here are the available tutorials and guides for the Detection Component.
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td><p>       Applying a Head </p><p>            Transform</p></td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/pryFn9mCSPPEmcrNDnFh/ApplyingHeadTransform.png">ApplyingHeadTransform.png</a></td><td><a href="/emerald-ai-wiki/emerald-components-required/detection-component/applying-a-head-transform.md">Applying a Head Transform</a></td></tr><tr><td></td><td><p>         Setting up the </p><p>       Detection Layers</p></td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/MJZL5jbcKFHnp6RFgces/DetectionLayers.png">DetectionLayers.png</a></td><td><a href="/emerald-ai-wiki/emerald-components-required/detection-component/setting-up-the-detection-layers-and-player-tag.md">Setting up the Detection Layers and Player Tag</a></td></tr><tr><td></td><td>        Faction Relations</td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/nuYJgnXKCKsXRiaGl8Q4/FactionSettingsFoldout.png">FactionSettingsFoldout.png</a></td><td><a href="/emerald-ai-wiki/emerald-components-required/detection-component/faction-relations.md">Faction Relations</a></td></tr></tbody></table>
