# Hit Animations

Hit animations can be setup below which can trigger when the entity is hit from either ability impacts or effects. This allows you to setup per character what animations they play when they get hit by an ability attack.&#x20;

The animation which plays depends on the list order. The list will be cycled through until a dice roll matches and it's within the min/max probability. Animations at the top will be checked first.&#x20;

{% hint style="info" %}
Animations marked as "**Only Activate From Effect/Direct Activation"** will not be considered in the list order when being cycled through. These have to be played directly from an Ability [setting ](https://dicelockstudio.gitbook.io/abc-toolkit/abc-components/collision-and-impact/collision)or effect.
{% endhint %}

If '"**Activate From Hit"** is disabled then abilities can't be activated from a hit. If "**Activate From Effect"** is disabled then hit animations can't be activated from direct activation/effect&#x20;

![](https://1755795481-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhJfX9-yykdmh_ePph_%2F-MjYnqO-ATe5wNuAePya%2F-MjYtOP4RhWgwrUmLjgj%2FHitReaction.PNG?alt=media\&token=89f5c8ab-8140-4f87-b357-cbb6ad8ee273)

## Hit Animations

An infinite amount of hit animations can be added. Within each Hit Animation is a space to name the group of animations set. This group name is used in other ability configuration when you want to set which hit animation to play. There is also a box to enable or disable the hit animation.&#x20;

{% hint style="info" %}
Hit Animations can be setup on the entity by pressing the “+ Add Hit Animation” button and can be removed by clicking the “X” for each section.
{% endhint %}

![](https://1755795481-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhJfX9-yykdmh_ePph_%2F-MjZB1scUi1gkjo6Z3_-%2F-MjZH-rr8082QxuKDr0x%2FHitReactionsAniClips.PNG?alt=media\&token=b39a2ac1-e03e-4686-91db-685124d517f3)

For each Hit Animation created you can add as many clips as you want, if the hit animation is chosen to play by ABC then one of the clips will be selected. The more clips you add the more dynamic the game will feel when a character is hit.&#x20;

The last part to configure is the probability that the hit animation will be chosen to play one of the clips, if not being activated directly ABC will go through all the hit animations until it finds one from a dice roll which is between the min and max value.&#x20;

![](https://1755795481-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhJfX9-yykdmh_ePph_%2F-MjZB1scUi1gkjo6Z3_-%2F-MjZGgFRRnpMsGfUSy1X%2FEffects_5.PNG?alt=media\&token=3d848d36-0c54-4796-9532-0e03eb3fd6ce)

{% hint style="warning" %}
It is highly recommended to read the tooltips in the blue boxes for a full description on what each setting does&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dicelockstudio.gitbook.io/abc-toolkit/state-manager/settings/hit-animations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
