---
name: "flag"
type: command
status: ok
groups: ["Flags"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/flag
revid: 353769
updated: 2024-03-23T14:27:22Z
---

# flag

*Command · Flags · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global**

## Description

Returns the original flag pole of the flag the unit is carrying.

## Syntax

```sqf
flag unit
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) - flag pole object the flag belongs to. If the unit carries no flag, [objNull](../commands/objNull.md) is returned.

## Examples

### Example 1

```sqf
_flag = flag _soldier;
```

## See also

[flagOwner](../commands/flagOwner.md) · [setFlagOwner](../commands/setFlagOwner.md) · [setFlagSide](../commands/setFlagSide.md) · [setFlagTexture](../commands/setFlagTexture.md) · [flagSide](../commands/flagSide.md) · [flagTexture](../commands/flagTexture.md) · [setFlagAnimationPhase](../commands/setFlagAnimationPhase.md) · [flagAnimationPhase](../commands/flagAnimationPhase.md) · [forceFlagTexture](../commands/forceFlagTexture.md) · [getForcedFlagTexture](../commands/getForcedFlagTexture.md)

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