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

# flagOwner

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

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

## Description

Returns the global owner of a flag. A getter for [setFlagOwner](../commands/setFlagOwner.md). Note that owner of a flag is [Object](../topics/Object.md) rather than [Number](../topics/Number.md), as how it is usually with other [owner](../commands/owner.md) commands

## Syntax

```sqf
flagOwner flag
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) - the person or vehicle that owns the flag is returned. If used on anything else than a flag, the returned value is [objNull](../commands/objNull.md). If the flag is on its pole, the return value is NULL. If the flagowner is dead, the return value is the name of the soldier model

## Examples

### Example 1

```sqf
_person = flagOwner _flagOne;
```

## See also

[setFlagOwner](../commands/setFlagOwner.md)

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