# Attack

To configure the enemy's attack, set all the parameters in the <mark style="color:green;">**AI Controller**</mark> script and adjust the <mark style="color:yellow;">**Attack Area**</mark> (during the game, the enemy runs to that area and then attacks).

![](/files/gDKNNWPtdpf5Jy2cMgpH)

#### Attack Area

{% hint style="info" %}
For melee enemies, make the small area, otherwise, they will attack characters very far.
{% endhint %}

* If the detection type is <mark style="color:orange;">**Vision**</mark> - the <mark style="color:green;">**Attack Distance**</mark> value regulates how many percents is the attack zone relative to the **See** **Area**.

![](/files/uz3SRORtOrax5nVEkwbK)

* In other cases, set the size of the attack zone as you need.

![](/files/zQ75yDfspDJBR2CsOm6d)


---

# 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://docs.gercstudio.com/enemies/ai-controller/attack.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.
