> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/main-components/manimal-controller/animal-animator-behaviors.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/main-components/manimal-controller/animal-animator-behaviors.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
