> For the complete documentation index, see [llms.txt](https://renownedgames.gitbook.io/aurora-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://renownedgames.gitbook.io/aurora-engine/artificial-intelligence/configurate-ai/behaviour/default-behavior/combat.md).

# Combat

Setting up a combat system for AI

| Name        | Description                     |
| ----------- | ------------------------------- |
| Meel Combat | Setting up melee combat for AI. |

## Meel Combat

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-Md7bAUcpM_jtLu_4Gra%2F-Md7cJVrGW5XJ9h9Djhh%2Fimage%20\(42\).jpg?alt=media\&token=a09d9127-48a8-4fa9-821a-3df96f60c0f5)

### Target Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhrGlCSMGZNMrzo5xA%2F-MdhsGBOUmreJPOJIdUu%2Fimage.png?alt=media\&token=a4fed1f0-2453-4b79-9e6a-299dc7ae4c91)

**Target Selection:** the algorithm for selecting a goal.

| Name    | Description                    |
| ------- | ------------------------------ |
| First   | The first one that came along. |
| Nearest | Nearest target.                |
| Distant | The farthest goal.             |

### Field Of View

Here we put a link to the [vision component](/aurora-engine/artificial-intelligence/vision.md) for AI.

### Combat Settings

#### Attack State

Responsible for selecting the goal.

### Distance Tolerance

It is responsible for the distance at which the damage from the impact will no longer pass.

{% hint style="success" %}
**Example:**

It often happens that you seem to have run away from the enemy, but still received damage, even though it was physically impossible. To prevent this, this variable was introduced.
{% endhint %}

### Attack State Property

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhrGlCSMGZNMrzo5xA%2F-Mdht9cDnBBf9xTDkFDX%2Fimage.png?alt=media\&token=a1053ba2-9d0a-4321-a02c-369db879f030)

| Name          | Description                                                         |
| ------------- | ------------------------------------------------------------------- |
| State         | Animation name, animation layer, transition time to this animation. |
| Time          | Animation duration.                                                 |
| Damage Time   | The time of the strike.                                             |
| Damage Amount | The damage caused by the impact.                                    |
