> 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/shooting.md).

# Shooting

Setting up the shooting system for AI.

| Name             | Description                                        |
| ---------------- | -------------------------------------------------- |
| Physics Shooting | Meets the logic of firing physical bullets for AI. |
| RayCast Shooting | Meets the logic of firing beams for AI.            |

## Physics Shooting

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHS9wOROD-TomuN_LE%2Fimage%20\(52\).jpg?alt=media\&token=fbd0325d-d2ec-4c7a-94aa-5dde8125a386)

### Vision Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHT6wUlP2A9Af_lPbp%2Fimage%20\(53\).jpg?alt=media\&token=dd0549b4-a043-4d12-ba19-eb2f12a3805a)

#### **Target Selection:**

Responsible for the type of choice the object of persecution.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-Md2NEC5zSHJrKtVIApr%2F-Md2bqt9KcK2WMhy7x9u%2Fimage.png?alt=media\&token=e4f646c6-08d9-4290-93ee-f4338ffd55ff)

| Name    | Description                             |
| ------- | --------------------------------------- |
| First   | Selects the first target seen.          |
| Nearest | Selects the nearest target.             |
| Distant | Selects a target at a certain distance. |

#### **Field Of View:**

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

To adjust the vision, read the:

{% content-ref url="/pages/-MbzrZADrsu0mU8dYmOX" %}
[Vision](/aurora-engine/artificial-intelligence/vision.md)
{% endcontent-ref %}

### Shoot Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTE4e1Q108_2OuivV%2Fimage%20\(54\).jpg?alt=media\&token=b2d676ab-6c81-42b4-9a6d-0cba00ea0f3a)

#### Fire Point:

The point where the bullets will fly out.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-Mc4iwWmw4DozS_pENGw%2F-Mc5H9hs1tbYHtJoyGqx%2Fimage.png?alt=media\&token=a7e51e93-c290-4474-b0cc-7a619cc0a8aa)

#### Bullet:

Here we put [the bullet we created.](/aurora-engine/weapon/configurate-weapon/setup-gun/shooting-system/create-bullet.md)

#### Impulse Amplifier:

Additional bullet momentum.

#### Rpm:

The number of shots fired per minute.

#### Queue:

The number of cartridges produced per turn.

| Name      | Description                  |
| --------- | ---------------------------- |
| Randomize | Random delay between queues. |
| Delay     | The delay between queues.    |

#### Fire Sound:

We put here a link to the sound effects when shooting.

#### Fire Effect:

Responsible for the effects when shooting.

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

When shooting, a cartridge flies out of the chamber or a flame appears at the muzzle from the shot.
{% endhint %}

### Reload Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTJ5PiSY0IjmoMIOm%2Fimage%20\(55\).jpg?alt=media\&token=a44529c0-9122-4248-9fe0-c83c10d4a106)

| Name         | Description                                           |
| ------------ | ----------------------------------------------------- |
| Bullet Count | The number of cartridges in the horn after reloading. |
| Reload Time  | Reload time.                                          |
| Reload Sound | The sound of reloading.                               |

### Animation Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTOfUiQloPKE1psfd%2Fimage%20\(56\).jpg?alt=media\&token=5dbc11ac-d487-4613-a9c7-144cbb0a46ba)

| Name         | Description             |
| ------------ | ----------------------- |
| Fire State   | Animation of shooting.  |
| Reload State | Animation of reloading. |

After that, in each floor, you need to write the **name of the animation**, **the animation layer** and **the transition time** to this animation.

### Search Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTUBqiVHQqaFsLNuw%2Fimage%20\(57\).jpg?alt=media\&token=aadfc2cb-a9eb-4a91-97c9-08bc9ddcdfce)

| Name               | Description                                                               |
| ------------------ | ------------------------------------------------------------------------- |
| Delay Time         | The waiting time after the target has disappeared from the field of view. |
| Search Steps       | The number of search attempts after the goal was lost.                    |
| Search Step Radius | The radius in which the AI will search for the lost target.               |

### Cover Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTZYw31kuCoIKTfKG%2Fimage%20\(58\).jpg?alt=media\&token=5d94317e-47f8-4fa0-8b7a-6c6134374c37)

#### Cover Behaviour

The algorithm for choosing a shelter.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhuFSpKkAfxTlwhd6S%2F-Mdhu_sz4CyvXMY1yJ5v%2Fimage.png?alt=media\&token=1b5fa0cc-f2a0-4b32-9c09-a352b0c98c02)

| Name          | Description            |
| ------------- | ---------------------- |
| Any Available | Any available shelter. |
| Nearest       | The nearest shelter.   |
| Distant       | Distant shelter.       |

#### Cover Map Initialization

By name: initialization by object name.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhuFSpKkAfxTlwhd6S%2F-MdhvWqgR7ZQJWXxZWl_%2Fimage.png?alt=media\&token=bcfe5f2e-892b-4e5d-8de4-3df4619f56cc)

Manual: by dragging the **Cover Map**.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhuFSpKkAfxTlwhd6S%2F-Mdhvbay-JlxoSRnoz4S%2Fimage.png?alt=media\&token=1b5e2850-4089-4cbc-ae81-1f91cc801f04)

### Audio Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTg9_0HD66uLT5Fr9%2Fimage%20\(59\).jpg?alt=media\&token=6b07b8c5-ddb8-49a0-890e-cfa2d5d647d1)

| Name         | Description                                                         |
| ------------ | ------------------------------------------------------------------- |
| Audio Source | Here you need to pass a link to the **Audio Source** of our **AI**. |

### Default Transition

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTmfF19UscuR7JrZo%2Fimage%20\(60\).jpg?alt=media\&token=0c943352-fa4d-4190-b3d1-b6be1a3d1f95)

**Target Behavior**: responsible for the state that the **AI** will go to when it loses the target.

### Event Callback

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTsc2hqFzDl692tGJ%2Fimage%20\(61\).jpg?alt=media\&token=68d63322-dc08-4290-94cc-9ae4eae20407)

#### On Enable Event ()

Events that will occur when entering the state.

#### On Disable Event ()

Events that will occur when exiting the state.

## RayCast Shooting

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhdMWycaE2I-9jeroX%2F-MdhhUUr8hFFRZ10G8ha%2Fimage%20\(74\).jpg?alt=media\&token=30d4926e-f28e-4279-bb2a-5b527e435ddd)

### Vision Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHT6wUlP2A9Af_lPbp%2Fimage%20\(53\).jpg?alt=media\&token=dd0549b4-a043-4d12-ba19-eb2f12a3805a)

#### **Target Selection:**

Responsible for the type of choice the object of persecution.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-Md2NEC5zSHJrKtVIApr%2F-Md2bqt9KcK2WMhy7x9u%2Fimage.png?alt=media\&token=e4f646c6-08d9-4290-93ee-f4338ffd55ff)

| Name    | Description                             |
| ------- | --------------------------------------- |
| First   | Selects the first target seen.          |
| Nearest | Selects the nearest target.             |
| Distant | Selects a target at a certain distance. |

#### **Field Of View:**

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

To adjust the vision, read the:

{% content-ref url="/pages/-MbzrZADrsu0mU8dYmOX" %}
[Vision](/aurora-engine/artificial-intelligence/vision.md)
{% endcontent-ref %}

### Shoot Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhdMWycaE2I-9jeroX%2F-MdhiGJwjJMPJDwlv7rZ%2Fimage%20\(75\).jpg?alt=media\&token=8964b490-4188-4106-84a4-ac05aed8d3d6)

#### Fire Point:

The point where the bullets will fly out.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-Mc4iwWmw4DozS_pENGw%2F-Mc5H9hs1tbYHtJoyGqx%2Fimage.png?alt=media\&token=a7e51e93-c290-4474-b0cc-7a619cc0a8aa)

#### Bullet:

Here we put [the bullet we created.](/aurora-engine/weapon/configurate-weapon/setup-gun/shooting-system/create-bullet.md)

#### Impulse Amplifier:

Additional bullet momentum.

#### Culling Layer

Layers with which it can interact.

#### Rpm:

The number of shots fired per minute.

#### Queue:

The number of cartridges produced per turn.

| Name      | Description                  |
| --------- | ---------------------------- |
| Randomize | Random delay between queues. |
| Delay     | The delay between queues.    |

#### Fire Sound:

We put here a link to the sound effects when shooting.

#### Fire Effect:

Responsible for the effects when shooting.

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

When shooting, a cartridge flies out of the chamber or a flame appears at the muzzle from the shot.
{% endhint %}

### Accuracy Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhdMWycaE2I-9jeroX%2F-MdhixCt2M1h5OEUkGsL%2Fimage%20\(76\).jpg?alt=media\&token=637faa5e-fc6f-4e41-9faf-986fd124da09)

**Spread Multiplier -** the coefficient of increasing the spread.

### Reload Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTJ5PiSY0IjmoMIOm%2Fimage%20\(55\).jpg?alt=media\&token=a44529c0-9122-4248-9fe0-c83c10d4a106)

| Name         | Description                                           |
| ------------ | ----------------------------------------------------- |
| Bullet Count | The number of cartridges in the horn after reloading. |
| Reload Time  | Reload time.                                          |
| Reload Sound | The sound of reloading.                               |

### Animation Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTOfUiQloPKE1psfd%2Fimage%20\(56\).jpg?alt=media\&token=5dbc11ac-d487-4613-a9c7-144cbb0a46ba)

| Name         | Description             |
| ------------ | ----------------------- |
| Fire State   | Animation of shooting.  |
| Reload State | Animation of reloading. |

After that, in each floor, you need to write the **name of the animation**, **the animation layer** and **the transition time** to this animation.

### Search Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTUBqiVHQqaFsLNuw%2Fimage%20\(57\).jpg?alt=media\&token=aadfc2cb-a9eb-4a91-97c9-08bc9ddcdfce)

| Name               | Description                                                               |
| ------------------ | ------------------------------------------------------------------------- |
| Delay Time         | The waiting time after the target has disappeared from the field of view. |
| Search Steps       | The number of search attempts after the goal was lost.                    |
| Search Step Radius | The radius in which the AI will search for the lost target.               |

### Cover Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTZYw31kuCoIKTfKG%2Fimage%20\(58\).jpg?alt=media\&token=5d94317e-47f8-4fa0-8b7a-6c6134374c37)

#### Cover Behaviour

The algorithm for choosing a shelter.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhuFSpKkAfxTlwhd6S%2F-Mdhu_sz4CyvXMY1yJ5v%2Fimage.png?alt=media\&token=1b5fa0cc-f2a0-4b32-9c09-a352b0c98c02)

| Name          | Description            |
| ------------- | ---------------------- |
| Any Available | Any available shelter. |
| Nearest       | The nearest shelter.   |
| Distant       | Distant shelter.       |

#### Cover Map Initialization

By name: initialization by object name.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhuFSpKkAfxTlwhd6S%2F-MdhvWqgR7ZQJWXxZWl_%2Fimage.png?alt=media\&token=bcfe5f2e-892b-4e5d-8de4-3df4619f56cc)

Manual: by dragging the **Cover Map**.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhuFSpKkAfxTlwhd6S%2F-Mdhvbay-JlxoSRnoz4S%2Fimage.png?alt=media\&token=1b5e2850-4089-4cbc-ae81-1f91cc801f04)

### Audio Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTg9_0HD66uLT5Fr9%2Fimage%20\(59\).jpg?alt=media\&token=6b07b8c5-ddb8-49a0-890e-cfa2d5d647d1)

| Name         | Description                                                         |
| ------------ | ------------------------------------------------------------------- |
| Audio Source | Here you need to pass a link to the **Audio Source** of our **AI**. |

### Effect Settings

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdhdMWycaE2I-9jeroX%2F-MdhjWjjIJDVrvjs4ldu%2Fimage%20\(77\).jpg?alt=media\&token=dcc67a79-be23-40ca-acd9-84fd2bbd4d15)

| Name                 | Description                                                                                                                                    |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Line Renderer Effect | Here we pass the **Ray Trail** component from our bullet.                                                                                      |
| Decal Mapping        | Here we pass a link to [**Decal Mapping.**](/aurora-engine/weapon/configurate-weapon/setup-gun/shooting-system/create-bullet/decal-mapping.md) |

{% hint style="info" %}
**Ray Trail -** responsible for drawing the bullet.
{% endhint %}

### Default Transition

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTmfF19UscuR7JrZo%2Fimage%20\(60\).jpg?alt=media\&token=0c943352-fa4d-4190-b3d1-b6be1a3d1f95)

**Target Behavior**: responsible for the state that the **AI** will go to when it loses the target.

### Event Callback

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-MdH8OM73jO3EC3PtDho%2F-MdHTsc2hqFzDl692tGJ%2Fimage%20\(61\).jpg?alt=media\&token=68d63322-dc08-4290-94cc-9ae4eae20407)

#### On Enable Event ()

Events that will occur when entering the state.

#### On Disable Event ()

Events that will occur when exiting the state.
