---
name: "setFlagAnimationPhase"
type: command
status: ok
groups: ["Flags"]
arma3_since: "1.68"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setFlagAnimationPhase
revid: 348703
updated: 2023-11-08T14:29:28Z
---

# setFlagAnimationPhase

*Command · Flags · Arma 3 v1.68*

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

## Description

Sets flag position on the flag pole. To animate flag use [BIS_fnc_animateFlag](../functions/BIS_fnc_animateFlag.md).

## Syntax

```sqf
flag setFlagAnimationPhase phase
```

**Parameters:**

- `flag`: [Object](../topics/Object.md) - flag pole of the type `"FlagCarrier"`
- `phase`: [Number](../topics/Number.md) - flag position on the flag pole according to the given animation phase, where 0 is the bottom of the flag pole, 1 is the top of the flag pole.

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

## Examples

### Example 1

```sqf
_flag1 setFlagAnimationPhase 0.5;
```

## See also

[flagAnimationPhase](../commands/flagAnimationPhase.md) · Arma 3: Flag Textures

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