---
name: "mineDetectedBy"
type: command
status: ok
groups: ["Mines"]
arma3_since: "1.24"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/mineDetectedBy
revid: 378787
updated: 2026-06-05T12:20:54Z
---

# mineDetectedBy

*Command · Mines · Arma 3 v1.24*

## Description

Returns [true](../commands/true.md) if mine has been detected by a given side

## Syntax

```sqf
mine mineDetectedBy side
```

**Parameters:**

- `mine`: [Object](../topics/Object.md)
- `side`: [Side](../topics/Side.md)

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

## Examples

### Example 1

```sqf
if (_myMine mineDetectedBy opfor) then
{
    hint "Children yearn for the mines";
};
```

## See also

[allMines](../commands/allMines.md) · [detectedMines](../commands/detectedMines.md) · [createMine](../commands/createMine.md) · [mineActive](../commands/mineActive.md) · [revealMine](../commands/revealMine.md)

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