# void Hero::SetAutocast(bool)

[Family: Hero](/imperivm/en/CKS/familias/hero/)

## Exact signature

```text
void Hero::SetAutocast(bool)
```

## Description

Clears or sets a flag in the resolved Hero according to the boolean argument.

## Parameters and return type

**Return type:** `void`

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

| Position | Type |
| --- | --- |
| 1 | `bool` |

## Read and share

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

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