# Animal - Play Mode

Plays a mode on the Animal (Self or Target)

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

## Parameters (Except for Common Parameters)

### Affect

Does the task affect Self or the current Target

### Action

3 Options:

* Play Forever
* Play Once
* Interrupt

### Near

Play the mode only when the Animal has arrived to its target

### Mode ID

Select a Mode ID to use

### Ability ID

Select an Ability to use. If set to -99 it will play a random ability.

### Mode Power

Set the value of the Mode Power in the Animator Controller.

### Cool Down

Time elapsed to play the mode again.

### Ignore First Cool Down

When the mode is set to Play Forever, it will ignore the first cooldown.

### Mode Angle

Play the mode if the Animal is looking at the target. To avoid modes playing behind the target, set to 180.

### Quick Align

Align with a Quick Align Look At towards the target when playing a mode.


---

# 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/ai/animal-brain/tasks/play-mode.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.
