> For the complete documentation index, see [llms.txt](https://slashin8r.gitbook.io/universal-monster/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://slashin8r.gitbook.io/universal-monster/features/behavior-system/tasks/flee.md).

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