# Dodge Combat Action

### Dodging Combat Action

The Dodging Combat Action gives an ability for AI to attempt to detect and dodge incoming projectiles and melee attacks. This also works for player attacks. There's a cooldown to control how often this action can happen.

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/OnMomeUktcdtr0WXhNp8/DodgeExampleGif.gif" alt=""><figcaption></figcaption></figure>

### Creating a New Dodging Combat Action

There is an example Dodging Combat Action to help get you started. However, you might want to create your own, or have different dodging settings for different AI. You can create a new Dodging Combat Action by right clicking within the Project tab and going to Create>Emerald AI>Action>Dodge Action.

{% hint style="info" %}
**Note:** You can also select the included example Dodge Combat Action and press Ctrl+D to duplicate it. This will allow you to create a copy of the example so you can retain the default settings such as the Enter, Cooldown, and Exit Condition settings.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/sIXnynUbLZoy1iTQlHyV/CreateNewCombatAction.png" alt=""><figcaption></figcaption></figure>

You will then have a new Dodging Combat Action to customize through the Dodging Combat Action Editor.

{% hint style="info" %}
**Note:** There are detailed tooltips for every setting. Just hover the mouse over the setting to bring up the tooltip.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/Sv9k11hezCXPrnHgzvv3/DodgeEditor.png" alt=""><figcaption></figcaption></figure>
