---
name: "getAllOwnedMines"
type: command
status: ok
groups: ["Mines"]
arma3_since: "1.62"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/getAllOwnedMines
revid: 347576
updated: 2023-09-28T10:10:09Z
---

# getAllOwnedMines

*Command · Mines · Arma 3 v1.62*

## Description

Gets all mine objects this unit has ownership over.

## Syntax

```sqf
getAllOwnedMines unit
```

**Parameters:**

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

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s

## Examples

### Example 1

```sqf
_mines = getAllOwnedMines player;
```

## See also

[allMines](../commands/allMines.md) · [createMine](../commands/createMine.md) · [detectedMines](../commands/detectedMines.md) · [mineActive](../commands/mineActive.md) · [removeOwnedMine](../commands/removeOwnedMine.md) · [addOwnedMine](../commands/addOwnedMine.md) · [removeAllOwnedMines](../commands/removeAllOwnedMines.md)

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