# void Unit::SetWalkAnim(int)

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

## Exact signature

```text
void Unit::SetWalkAnim(int)
```

## Description

Selects the unit's walking animation from the supplied index. This call does not issue a movement order.

## Usage notes

The integer overload stores the supplied index minus one in a 16-bit selector. In verified captures, SetWalkAnim(13) selected internal index 12. The no-argument overload is distinct. Safe indices for each template and subsequent behavior with out-of-range indices or invalid references are not established.

## 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 | `int` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`void Unit::SetWalkAnim()`](/en/CKS/reference/api-b7232d71e4e9b9/)

## Read and share

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

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