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

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FCG2rtdoAjLsgI8urFkD8%2FAttack%20Parameters.png?alt=media\&token=b973b979-28dc-42d7-8b93-60964561e533)

#### 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**.

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FeYP4laSfnEIo8hlXKPh2%2FScreenshot%202021-12-12%20at%2014.33.29.png?alt=media\&token=95216223-bf34-438f-b9fe-dd73c1ee9a6c)

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

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FsxEoxPoxKug6Cs0ti638%2FScreenshot%202021-12-12%20at%2014.37.46.png?alt=media\&token=4c838576-2b1a-4030-b353-b322454033a5)
