> 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/ai/animal-brain/tasks/play-state.md).

# Animal - Set/Play State

Plays a State on the Animal (Self or Target)

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

## Parameters (Except for Common)

### State ID

Select which State you want to play.

### Play Near Target

Play the state only when the animal has arrived to the target.

### Affect

Who does the task affect? Self or Current Target?

### Action

What to do with the State - Several Options:

* Activate
* Allow Exit
* Force Activate
* Enable
* Disable
* Set Exit Status

### Play

When should the state play? Several Options:

* On Start
* On Update
* On Exit

### Cooldown

The cooldown to play the state again
