# bool Unit::AttachTo(Hero)

[Family: Unit](/imperivm/en/CKS/familias/unit/)

## Exact signature

```text
bool Unit::AttachTo(Hero)
```

## Description

Resolves Unit and Hero, rejects invalid or virtual [field] positive operands, then returns whether Unit helper [field] accepts the Hero.

## Parameters and return type

**Return type:** `bool`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `Hero` |

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-ed148af0bf9273.md)
- [JSON](/imperivm/CKS/api/entries/api-ed148af0bf9273?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
