# Duplicating an AI

## Duplicating an AI

The AI Duplicator Manager is a powerful new tool that allows users to duplicate AI from a Reference AI. This can greatly speed up development by not having to reassign certain components that have already been already been set up on other AI. The AI Duplicator can even copy complex components and information such as weapon items, Animation Rig, Ragdoll Components, and more.

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

{% hint style="info" %}
**Note:** Some components, such as the Ragdoll Components, requires identically named bones/transforms in order to be successfully copied. AI who do not meet this requirement will not have those components copied.
{% endhint %}

### Step 1

Apply the Reference AI object to the Reference AI  slot. The data from this object will be copied to the any AI within the AI To Duplicate To list.

### Step 2

Choose which components will be copied from the Reference AI. You can see detailed information on what each component will do by hovering over the ? icon, which will bring up a tooltip. It is important to read through these so you know what will be copied and the changes that will be made.

### Step 3

Assign the objects you want duplicated to the AI To Duplicate To list. If your animated objects have not been run through the [Setup Manager](/emerald-ai-wiki/emerald-managers/setup-manager.md), the components will be automatically added and then duplicated.

{% hint style="info" %}
**Note:** An object does not have to be set up in order to use the AI Duplicator. Any animated model can be used and will automatically be set up as if it were run through the [Setup Manager](/emerald-ai-wiki/emerald-managers/setup-manager.md). Keep in mind that identically named bones/transforms are required for certain components to be copied.
{% endhint %}

{% hint style="info" %}
**Note:** Making a GameObject an AI requires the AI Object to be [Unpacked](https://docs.unity3d.com/Manual/UnpackingPrefabInstances.html), given that it is a [Prefab](https://docs.unity3d.com/Manual/Prefabs.html). However, this object can then be made into a new prefab after the duplication process has finished.
{% endhint %}

{% hint style="warning" %}
**Important:** Keep in mind that once you press the Duplicate AI button, the changes made cannot be undone.
{% endhint %}

<figure><img src="/files/RgryHSMApdSJ5SNvPAlG" 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-managers/ai-duplicator-manager/duplicating-an-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.
