# 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

![](https://963537199-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lzhr1XSMzMqNXjRnNlb%2F-MZG7O5YS3SfPrDMHcFL%2F-MZG7mSjsgkT_v0wI_CQ%2Fimage.png?alt=media\&token=69db5faa-a38e-4539-81ce-8be55d90db50)

{% 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="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FBaOt51PgKKHHYvzkJQAI%2Fimage.png?alt=media&#x26;token=488aa76a-0164-4c92-9ef1-88c7ee20c4cb" alt=""><figcaption><p>List of General Tasks as of 1.4.2</p></figcaption></figure>

### [Chance](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-chance)

### [Empty](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-empty)

### [Invoke Event](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-invoke-event)

### [Send Message](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/message)

### [Play Audio](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-play-audio)

### [Quick Align](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-quick-align)

### [Reaction](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-reaction)

### [Set Look-At Aim](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/set-look-at)

### [Set Stat](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-set-stat)

### [Wait](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/wait)

## Animal

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FBtLykdYIWkpGyXirflQG%2Fimage.png?alt=media&#x26;token=9557da9a-8926-4123-a264-9345ca3aba85" alt=""><figcaption><p>List of Animal Tasks as of 1.4.2</p></figcaption></figure>

### [Set Speed](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/change-speed)

### [Set Play Mode](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/play-state)

### [Set State](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/general-set-stat)

### [Set Stance](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/set-stance)

### [Set Strafe](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/animal-set-strafe)

## Movement

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FhOdURMIMD4kK4mQfYMbD%2Fimage.png?alt=media&#x26;token=b452fad2-47e1-4540-a34c-2f537f979d7e" alt=""><figcaption><p>List of Movement Tasks as of 1.4.2</p></figcaption></figure>

### [Movement-Stop](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/move-stop)

### [Patrol](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/patrol)

### [Set Destination](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/movement-set-destination)

### [Set Target](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/set-target)

## Variables

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FtyNsDDzJsB9JWLYLNy5G%2Fimage.png?alt=media&#x26;token=40c0633e-914f-432d-934d-100cdd7b0d1c" alt=""><figcaption><p>List of Variable Tasks as of 1.4.2</p></figcaption></figure>

### [Set Var Listener](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/set-var-listener)

## Weapons

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FAp29Vx9T6v5LsvNX5Rfr%2Fimage.png?alt=media&#x26;token=4be1b056-aecd-4d07-b8d5-ff054150a0c7" alt=""><figcaption></figcaption></figure>

### [Weapon Tasks](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/animal-brain/tasks/weapons-weapon-tasks)
