> For the complete documentation index, see [llms.txt](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-profiles-and-objects/combat-action-object.md).

# Combat Action Object

<figure><img src="/files/cCt1rkhE6ezbm3DF0Xl4" alt=""><figcaption></figcaption></figure>

## Combat Action Object

Combat Actions are actions that an AI can make while in combat, given the conditions for the actions are met. There are 5 included Combat Actions, these include; Blocking, Dodging, Strafing, Switching Targets, and Random Combat Movement. Combat Actions are created through the EmeraldAction class and allows users to create their own custom Combat Actions, if desired.

{% hint style="warning" %}
**Important:** [Root Motion Animations](https://docs.unity3d.com/Manual/RootMotion.html) are required for the Strafe and Dodge Combat Actions.
{% endhint %}

{% hint style="info" %}
**Note:** Models, animations, and particle effects are not included.
{% endhint %}

{% hint style="success" %}
Here are the available tutorials and guides for the Combat Action object.
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td>  Blocking Combat Action</td><td></td><td><a href="/files/WXC2BKSBMRLkd4rsgTpL">/files/WXC2BKSBMRLkd4rsgTpL</a></td><td><a href="/pages/P1ZiUUnMnY21YEUNDvc3">/pages/P1ZiUUnMnY21YEUNDvc3</a></td></tr><tr><td></td><td>   Dodge Combat Action</td><td></td><td><a href="/files/zJ1k6E5qTF8vaRKcn4cj">/files/zJ1k6E5qTF8vaRKcn4cj</a></td><td><a href="/pages/2RMUoSkaUUBPONC8agPJ">/pages/2RMUoSkaUUBPONC8agPJ</a></td></tr><tr><td></td><td>    Strafe Combat Action</td><td></td><td><a href="/files/EUAmCic164cwkKiQbxUJ">/files/EUAmCic164cwkKiQbxUJ</a></td><td><a href="/pages/iYboXUkPr7KQFOCWKoEw">/pages/iYboXUkPr7KQFOCWKoEw</a></td></tr><tr><td></td><td><p>     Random Movement   </p><p>        Combat Action</p></td><td></td><td><a href="/files/VV1DJmYv9h7qseYDaOhs">/files/VV1DJmYv9h7qseYDaOhs</a></td><td><a href="/pages/uH64QvTeHuCDFmPEOjlT">/pages/uH64QvTeHuCDFmPEOjlT</a></td></tr><tr><td></td><td><p>          Switch Target </p><p>         Combat Action</p></td><td></td><td><a href="/files/yv8M2q9dcZ91kHcR0Jlc">/files/yv8M2q9dcZ91kHcR0Jlc</a></td><td><a href="/pages/W76Jlj6P9aFaa4Raz1ac">/pages/W76Jlj6P9aFaa4Raz1ac</a></td></tr><tr><td></td><td><p>       Creating Custom </p><p>        Combat Actions</p></td><td></td><td><a href="/files/xKVHgrYn7LpXa61voW6T">/files/xKVHgrYn7LpXa61voW6T</a></td><td><a href="/pages/tiWdLHqNJdeWncyJ8GoZ">/pages/tiWdLHqNJdeWncyJ8GoZ</a></td></tr></tbody></table>
