# Tasks

## Overview

Task are logics that will be executed Once an AI State starts. It can be simple tasks like changing the speed on the animal, playing a mode, changing the stance or more complex task like sending movement to the AI control to Patrol

## Common Properties

![](/files/-MZG7mSjsgkT_v0wI_CQ)

{% hint style="warning" %}
Not all common properties will appear on every task.
{% endhint %}

### Name

Name of the Task

### Description

Description to fill what the Task does.

### Message ID

ID to identify which is the task playing at the moment. This is the value the Brain Event OnTaskStarted will send.

### Wait For Previous Task

Does this task need to wait for the previous task in the list before activating?

### Update Interval

How often should this task be checked? Lower numbers = better accuracy but lower performance.&#x20;

## Default Tasks

## General

<figure><img src="/files/MoD6RNLnVE6ix2fpCGes" alt=""><figcaption><p>List of General Tasks as of 1.4.2</p></figcaption></figure>

### [Chance](/animal-controller/main-components/ai/animal-brain/tasks/general-chance.md)

### [Empty](/animal-controller/main-components/ai/animal-brain/tasks/general-empty.md)

### [Invoke Event](/animal-controller/main-components/ai/animal-brain/tasks/general-invoke-event.md)

### [Send Message](/animal-controller/main-components/ai/animal-brain/tasks/message.md)

### [Play Audio](/animal-controller/main-components/ai/animal-brain/tasks/general-play-audio.md)

### [Quick Align](/animal-controller/main-components/ai/animal-brain/tasks/general-quick-align.md)

### [Reaction](/animal-controller/main-components/ai/animal-brain/tasks/general-reaction.md)

### [Set Look-At Aim](/animal-controller/main-components/ai/animal-brain/tasks/set-look-at.md)

### [Set Stat](/animal-controller/main-components/ai/animal-brain/tasks/general-set-stat.md)

### [Wait](/animal-controller/main-components/ai/animal-brain/tasks/wait.md)

## Animal

<figure><img src="/files/xNx3BsFzfpVr6e3rPXv7" alt=""><figcaption><p>List of Animal Tasks as of 1.4.2</p></figcaption></figure>

### [Set Speed](/animal-controller/main-components/ai/animal-brain/tasks/change-speed.md)

### [Set Play Mode](/animal-controller/main-components/ai/animal-brain/tasks/play-state.md)

### [Set State](/animal-controller/main-components/ai/animal-brain/tasks/general-set-stat.md)

### [Set Stance](/animal-controller/main-components/ai/animal-brain/tasks/set-stance.md)

### [Set Strafe](/animal-controller/main-components/ai/animal-brain/tasks/animal-set-strafe.md)

## Movement

<figure><img src="/files/CZEaBcTUl5uD1UgtpQ4V" alt=""><figcaption><p>List of Movement Tasks as of 1.4.2</p></figcaption></figure>

### [Movement-Stop](/animal-controller/main-components/ai/animal-brain/tasks/move-stop.md)

### [Patrol](/animal-controller/main-components/ai/animal-brain/tasks/patrol.md)

### [Set Destination](/animal-controller/main-components/ai/animal-brain/tasks/movement-set-destination.md)

### [Set Target](/animal-controller/main-components/ai/animal-brain/tasks/set-target.md)

## Variables

<figure><img src="/files/fpW8L1n1ytskD3Ynyczr" alt=""><figcaption><p>List of Variable Tasks as of 1.4.2</p></figcaption></figure>

### [Set Var Listener](/animal-controller/main-components/ai/animal-brain/tasks/set-var-listener.md)

## Weapons

<figure><img src="/files/9146qwAOiBy7fnrrnIlI" alt=""><figcaption></figcaption></figure>

### [Weapon Tasks](/animal-controller/main-components/ai/animal-brain/tasks/weapons-weapon-tasks.md)


---

# 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.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.
