# Animal Animator Behaviors

## Overview

Some code needs to be set on the Animator Controller in order for the Animal Controller knows when to execute certain logic. These are the case of Animator Behaviors.

## Allow Exit Behaviour

<figure><img src="/files/8s2ckbMs13DFWIm8Cnfg" alt=""><figcaption></figcaption></figure>

Use this behavior to force the animal to change to a new state when is playing an exit Animation.

A great example of this is the Climb State. It has several Exit Animations and it needs to know when  to exit to the next state:

{% embed url="<https://streamable.com/8o1ppp>" %}

### Next State

It is the next state that the Animal will perform. If it is set to null, AC will decide which the next State to activate will be.

### Exit Status

AC will use this value to set the \[Exit State Status] parameter on the Animator Controller.

### Time

After this normalized time has elapsed, the state will be forced to exit.&#x20;

{% hint style="warning" %}
For further information regarding all the other Animator Behaviours, see the [**Animator Behaviours**](/animal-controller/global-components/animator-behaviours.md) page!
{% 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://malbersanimations.gitbook.io/animal-controller/main-components/manimal-controller/animal-animator-behaviors.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.
