# Assigning Attack Transforms

## Assigning Attack Transforms

The Weapon Transforms List is a list of transforms an AI can use as its spawn source for its abilities. For example, a Mage can shoot a spell out of its left hand, right hand, or both, even if using just a single animation. This feature can also be used for Boss-like AI to have something like an impact effect play where their fist is at the time of a large attack.

These are based off of an AI's Attack Transforms within their AI's Combat Component under each Weapon Type foldout. You can press the + button to create a new element and then assign the desired transform. You can do this for multiple transform sources.

{% hint style="warning" %}
**Important:** Not applying an Attack Transform will cause abilities to spawn from the AI's Head Transform source (which is done as a failsafe so an AI can still function without throwing an error).
{% endhint %}

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

Users can customize which points an AI uses through the Emerald Attack Event when setting up Animation Events (if you haven't already done so). It is recommended user use the Animation Viewer Manager to do this. If you are not familiar with this tool, it is covered on the [Animation Viewer Manager](/emerald-ai-wiki/emerald-managers/animation-viewer-manager.md) section of the Emerald AI Wiki.&#x20;

{% hint style="warning" %}
**Important:** The name of the transform **must match** the one in the AI's Attack Transform List. Because animations can be shared across multiple AI, it is recommended that the names of attack transforms are kept consistent to maximize compatibility with other AI. You can create empty GameObjects (which use the same name and are parented to the desired transform) and assign these instead, if needed.
{% endhint %}

<figure><img src="/files/M4L17mkq6DaEMnTYCD53" 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/combat-component/assigning-attack-transforms.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.
