# Flee

The **Flee** task tells your AI to run away from its **Current Target**. You can setup your AI to run away at random angles to give it a more realistic feel. They will run away until the **Task Conditions** are met, a specific duration has elapsed, or when the **AIMoveTo** node finishes and returns a **Success** or **Fail** result.

![This example will Flee until the AI is 5000 units from the Current Target](https://2501426749-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbsB8IAdQC_jVeRoJ70%2F-MkhKuxCGMov2Ua4zOr0%2F-MkhNpk0N7dcSNOICett%2Fimage.png?alt=media\&token=36d5df09-140a-445f-89ac-b6f4d654adc6)

### Task Info

**Min Angle**: Minimum Angle relative to Direction away from Current Target.\
**Max Angle**: Maximum Angle relative to Direction away from Current Target.\
**Angle Offset**: Offset of the random angle chosen between Min Angle and Max Angle.\
**Min Distance**: Minimum distance to be used to find a reachable point.\
**Max Distance**: Maximum distance to be used to find a reachable point.\
**Min Movement Rate**: Minimum percentage of max walk speed.\
**Max Movement Rate**: Maximum percentage of max walk speed.


---

# 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://slashin8r.gitbook.io/universal-monster/features/behavior-system/tasks/flee.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.
