# Fleeing Demo

## Fleeing Demo

The Fleeing Demo shows an AI fleeing from the camera. The AI will flee in the opposite direction of its current target. If it gets near an edge, it will generate a new destination to avoid getting stuck. This is done using the Coward Behavior set through the [Behavior Component](/emerald-ai-wiki/emerald-components-required/behaviors-component.md). While demo is shown with an NPC-like AI, it can certainly be used for things like animal AI.

{% hint style="info" %}
**Note:** The camera can be controlled with the mouse and moved with the w, a, s, and d keys.
{% endhint %}

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


---

# 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://black-horizon-studios.gitbook.io/emerald-ai-wiki/getting-started/included-demo-scenes/fleeing-demo.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.
