> For the complete documentation index, see [llms.txt](https://docs.gercstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gercstudio.com/enemies/ai-controller/attack.md).

# 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)
