> 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/weapon/configurate-weapon/setup-melee/attack-system.md).

# Attack System

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McATQBiJ6oeZLhfhjoB%2Fimage.png?alt=media\&token=30f4caa0-03cb-46e0-a083-74a50558593d)

## Melee Weapon&#x20;

Here we put a link to the object (model) of our weapon, but it needs to be configured to function.

To do this, our object must have the following components :

1. **Melee Weapon**
2. **Box Collider**
3. **Rigidbody**&#x20;

### Melee Weapon

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McAU2oxBf18P5v2rbTI%2Fimage.png?alt=media\&token=d1cebe3e-7cff-4738-ab09-63a68336a79b)

#### Damage&#x20;

Indicates the damage that will be inflicted when hitting an

#### Impulse

The pulse that will be communicated to the attacked charact

#### Decal Mapping

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McAUbOQS_Un1dro2LKf%2Fimage.png?alt=media\&token=bdc52020-51d1-4ab7-81ed-c0d665532272)

It is a repository of decals.

We can set the physical material or texture we need on the terrain.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McAUpMOO1ECSJ7nVbaf%2Fimage%20\(8\).jpg?alt=media\&token=19b98920-b5a9-4d52-9b58-6d20edf9802b)

And install a set of decals for it.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McAV-r90JVEGVMZordl%2Fimage%20\(9\).jpg?alt=media\&token=0c845fad-d310-4e93-9609-95c73d50bd45)

### Box Collider

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McAVEucmdeIa5F3JY1j%2Fimage.png?alt=media\&token=43df9992-91b8-4316-bb65-08a5f1b437b3)

We install it at the place of the model, in contact with which damage should be inflicted.

{% hint style="info" %}
The damage will be dealt once upon contact.
{% endhint %}

### Rigidbody

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McAPdZPZAdq1rlsIDgf%2F-McAVc_B1jEUt4sHrxbV%2Fimage.png?alt=media\&token=bfdcd665-2f82-421d-870f-4ce71fcfe30b)

We need it in order for the trigger to be triggered when interacting with the blade.

{% hint style="info" %}
We need **Is Kinematic** so that it does not fall.
{% endhint %}

## Inactive Access

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McFAQL4EXgLcF-mnc-g%2F-McFCsiia5QOHFJrXjXx%2Fimage%20\(10\).jpg?alt=media\&token=c384ad8f-0e28-4c36-b42f-7c5e4c96fa13)

This parameter is responsible for **a quick attack** with a cold weapon.

{% hint style="info" %}
**Quick attack** - when you click on a given button, the character will remove the weapon from his hands, take out a cold weapon and make a blow with it, then remove the cold weapon and take out the removed weapon back.
{% endhint %}

In order to correctly configure this parameter, you need to enter the name of the action from the input system in the **Input Action Name** field :

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McFAQL4EXgLcF-mnc-g%2F-McFF6ZLmkIWjGwUquMm%2Fimage%20\(11\).jpg?alt=media\&token=0be029d3-89c4-4964-b15f-7cd7d4b8008d)

{% hint style="warning" %}
Please note that the names **must match** to work.
{% endhint %}

After we have set a new action, we need to configure the button on which it will be called, for this we go to **\<No Binding>**

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McFAQL4EXgLcF-mnc-g%2F-McFFkECsFXOzgnMr5Te%2Fimage%20\(12\).jpg?alt=media\&token=0b32e243-3a21-4fe1-9898-fa98d253f17b)

Then we go to **Path** and there we select the platform we need and select the key.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McFAQL4EXgLcF-mnc-g%2F-McFGHQECKlCqR9wKJqP%2Fimage%20\(13\).jpg?alt=media\&token=73e9ff4c-c1d9-4a77-857d-460b3b4eb04b)

If you can't find the key you need in the list, but you have the right gadget at hand, then you can click on **Listen** and then click on the button you need on the gadget and this button will be added to the list below.

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McFAQL4EXgLcF-mnc-g%2F-McFGpRbnL5Vv99en81T%2Fimage%20\(14\).jpg?alt=media\&token=df0b6cd8-8cb4-4bc1-98f6-947d85c92b0b)

![](https://4102492771-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbGcEmnwAxQ5XmsXrVA%2F-McFAQL4EXgLcF-mnc-g%2F-McFH75fgbUa-dk7Cw6l%2Fimage%20\(15\).jpg?alt=media\&token=8ceb97fb-9a4d-458c-b4dd-24568cf59728)

{% hint style="success" %}
After all the settings, if everything is done correctly, when you click on the selected button, a quick attack with cold weapons will occur.
{% endhint %}
