# Summon Ally Unit

## Main Functions

<figure><img src="https://2974097063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZABevJSmMTeCyHBkBkMT%2Fuploads%2FDEGiC6qjKou4TM1npGLq%2Fimage.png?alt=media&#x26;token=88addb2c-8b58-4305-84e0-0e6de8c6c409" alt=""><figcaption></figcaption></figure>

## Getters

<figure><img src="https://2974097063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZABevJSmMTeCyHBkBkMT%2Fuploads%2FuQCD2WGkDfV9F6pWL72P%2Fimage.png?alt=media&#x26;token=64ddb305-5f3e-4f58-929d-4b6f1e1b1172" alt=""><figcaption></figcaption></figure>

## Events

<figure><img src="https://2974097063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZABevJSmMTeCyHBkBkMT%2Fuploads%2FRFLTtlyceMcPymRnr2LR%2Fimage.png?alt=media&#x26;token=30fa90d3-71f0-42c5-a8f7-ed31d9910023" alt=""><figcaption></figcaption></figure>

## Custom Example

This is a basic example of how to make it so that when your character dies, it summons a creature. You can think of it as if it were a hydra – when one head is cut off, one or two more appear (depends on your game logic).

{% hint style="warning" %}
**IMPORTANT**: It won't work properly if you try to handle it with a unit destroyed event; it must be done a step earlier, as the reference to the original owner would be lost, potentially causing errors.
{% endhint %}

<figure><img src="https://2974097063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZABevJSmMTeCyHBkBkMT%2Fuploads%2Fa2fnhuCo5nn8vL6hXS8x%2Fimage.png?alt=media&#x26;token=6d528f13-18f8-442b-9587-84acba0be7d6" alt=""><figcaption></figcaption></figure>
