---
name: "setAnimSpeedCoef"
type: command
status: ok
groups: ["Animations", "Stamina System"]
arma3_since: "1.54"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setAnimSpeedCoef
revid: 353131
updated: 2024-03-12T12:48:26Z
---

# setAnimSpeedCoef

*Command · Animations, Stamina System · Arma 3 v1.54*

Locality: arguments **global** · effect **local**

## Description

Sets a coefficient for animation speed (0.5 will play animations half the speed, 2 twice the speed).

Doesn't affect upper body animations (reloading, etc.)

## Syntax

```sqf
unit setAnimSpeedCoef coef
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `coef`: [Number](../topics/Number.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
player setAnimSpeedCoef 0.75;
```

## See also

Arma 3: Stamina · [getAnimSpeedCoef](../commands/getAnimSpeedCoef.md) · [setAccTime](../commands/setAccTime.md)

## Community notes

**Waffle SS.** — 2021-10-30

For animation speed to control unit speed, this must be executed on the local client.
Non-local clients can set a speed less than the local client's.
Non-local clients using an animation speed greater than the local client's may result in the animation freezing.

<sub>Source: [BI Community Wiki — setAnimSpeedCoef](https://community.bistudio.com/wiki/setAnimSpeedCoef) (revision 353131).</sub>
