# Combat Action Object

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/ns3rNHQ9YedQJrsPlIA1/CombatActionComponent.png" 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="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/8kaWSmciJPZlxZtMHdfx/BlockExample.gif">BlockExample.gif</a></td><td><a href="combat-action-object/blocking-combat-action">blocking-combat-action</a></td></tr><tr><td></td><td>   Dodge Combat Action</td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/OnMomeUktcdtr0WXhNp8/DodgeExampleGif.gif">DodgeExampleGif.gif</a></td><td><a href="combat-action-object/dodge-combat-action">dodge-combat-action</a></td></tr><tr><td></td><td>    Strafe Combat Action</td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/Af8uhV7E72ZRSktS3P7m/StrafingExample.gif">StrafingExample.gif</a></td><td><a href="combat-action-object/strafe-combat-action">strafe-combat-action</a></td></tr><tr><td></td><td><p>     Random Movement   </p><p>        Combat Action</p></td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/0kSFsityLdollRJw2d0F/Random%20Movement%20Example.gif">Random Movement Example.gif</a></td><td><a href="combat-action-object/random-movement-combat-action">random-movement-combat-action</a></td></tr><tr><td></td><td><p>          Switch Target </p><p>         Combat Action</p></td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/341yvJkQNm8t1UBq6J7O/SwitchTargetExample.gif">SwitchTargetExample.gif</a></td><td><a href="combat-action-object/switch-target-combat-action">switch-target-combat-action</a></td></tr><tr><td></td><td><p>       Creating Custom </p><p>        Combat Actions</p></td><td></td><td><a href="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/BLSE3FaoiJCg7OOENcn7/CoverDamagingLDBComponent.png">CoverDamagingLDBComponent.png</a></td><td><a href="combat-action-object/creating-custom-combat-actions-through-code">creating-custom-combat-actions-through-code</a></td></tr></tbody></table>
