# Detection Component

<figure><img src="/files/2Qfdmjy59uTONZnK5oRV" 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="/files/5r907367AuQckdSSzyet">/files/5r907367AuQckdSSzyet</a></td><td><a href="/pages/7M6YsZ8WLJhE1LSy7oEH">/pages/7M6YsZ8WLJhE1LSy7oEH</a></td></tr><tr><td></td><td><p>         Setting up the </p><p>       Detection Layers</p></td><td></td><td><a href="/files/lPAfDKCkb7VCtsX5xQDN">/files/lPAfDKCkb7VCtsX5xQDN</a></td><td><a href="/pages/FmRWxAEHxmaCMQnEdnK2">/pages/FmRWxAEHxmaCMQnEdnK2</a></td></tr><tr><td></td><td>        Faction Relations</td><td></td><td><a href="/files/8JPeEGV84A1x3JjJXjJf">/files/8JPeEGV84A1x3JjJXjJf</a></td><td><a href="/pages/ib7BXC1XL4fAWgxv5oHz">/pages/ib7BXC1XL4fAWgxv5oHz</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-required/detection-component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
