# Setting up an AI's Health

## Setting up an AI's Health

The Health Settings controls how much health an AI has. It also has a health bar within the editor that shows an AI's Current Health, which is updated during runtime when an AI is receiving damage.

The Starting Health controls how much health an AI will start with. Once its Current Health reaches 0, the AI will be dead. The Heal Rate controls how much health an AI will heal per second when not in combat.

{% hint style="info" %}
**Note:** Setting the Immortal setting to true will allow an AI to be immortal so they cannot be killed. Their health will also not be depleted and will continue to stay at its full amount. An AI will still play its hit animations when successfully hit.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/v03IiZPaMe8fX49a9MnO/blobs/sBm4oEYeXQiMttz6DhP7/HealthSettings.png" 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/health-component/setting-up-an-ais-health.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.
