# Creating a Coward AI

{% hint style="info" %}
**Note:** It is recommended that users have fully setup an AI's Factions, Animation Profile, and other basic steps before proceeding.
{% endhint %}

## Creating an Coward AI

Coward AI will flee from detected targets they have an Enemy Relation Type with. If they are attacked by someone like a player who they have a Neutral Relation Type with, they will only flee from said target if attacked first.&#x20;

To set an AI's behavior, go to the AI's Behavior Component and expand the Behavior Settings foldout. Set the Current Behavior Type to Coward. This will opening up additional settings specifically for the coward behavior type.

<figure><img src="/files/0Ps7BQCyAq1oiHmJeIzO" 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/emerald-components-required/behaviors-component/creating-a-coward-ai.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.
