> 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="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FPYRlHxdoGQMBHDwbtQsz%2Fimage.png?alt=media&amp;token=d9409236-d25a-45cb-a2eb-17f0fdf813b7" 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
