---
name: "ctrlAnimateModel"
type: command
status: ok
groups: ["GUI Control - Object"]
arma3_since: "1.84"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/ctrlAnimateModel
revid: 329860
updated: 2022-08-07T23:03:59Z
---

# ctrlAnimateModel

*Command · GUI Control - Object · Arma 3 v1.84*

## Description

Process an animation of 3D Arma: GUI Configuration. Command uses name defined by source property and works similar like [animateSource](../commands/animateSource.md) command.

## Syntax

```sqf
control ctrlAnimateModel [source, phase, speed]
```

**Parameters:**

- `control` : [Control](../topics/Control.md) - 3D control
- `source`: [String](../topics/String.md) - common source
- `phase`: [Number](../topics/Number.md) - wanted animation phase
- `speed`: [Boolean](../topics/Boolean.md) or [Number](../topics/Number.md) - (Optional, default [false](../commands/false.md))
  - [Boolean](../topics/Boolean.md) - when set to [true](../commands/true.md), animation is instant
  - Arma 3 v1.66 [Number](../topics/Number.md) - > 0 is treated as config speed value multiplier

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

## Examples

### Example 1

```sqf
_control3D ctrlAnimateModel ["Close", 1];
```

### Example 2

```sqf
_ctrlLaptop ctrlAnimateModel ["Lid", 1, 2];
```

## See also

[ctrlAnimationPhaseModel](../commands/ctrlAnimationPhaseModel.md) · [ctrlCreate](../commands/ctrlCreate.md) · [ctrlDelete](../commands/ctrlDelete.md) · [ctrlModel](../commands/ctrlModel.md) · [ctrlPosition](../commands/ctrlPosition.md) · [ctrlSetPosition](../commands/ctrlSetPosition.md) · [ctrlClassName](../commands/ctrlClassName.md) · [displayCtrl](../commands/displayCtrl.md) · [ctrlModelScale](../commands/ctrlModelScale.md) · [ctrlSetModelScale](../commands/ctrlSetModelScale.md) · [ctrlModelDirAndUp](../commands/ctrlModelDirAndUp.md) · [ctrlSetModelDirAndUp](../commands/ctrlSetModelDirAndUp.md)

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