# Mines (scripting commands)

- [addOwnedMine](../../commands/addOwnedMine.md): Sets ownership of a remotely detonatable mine to a unit. If the unit is a player, an action that allows the player to detonate the mine is added to the action menu.
- [allMines](../../commands/allMines.md): Returns an array of all mines in the mission
- [createMine](../../commands/createMine.md): Creates a mine of the given type.
- [detectedMines](../../commands/detectedMines.md): Returns an array of all mines detected by a given side
- [getAllOwnedMines](../../commands/getAllOwnedMines.md): Gets all mine objects this unit has ownership over.
- [mineActive](../../commands/mineActive.md): Checks if the given mine is active.
- [mineDetectedBy](../../commands/mineDetectedBy.md): Returns true if mine has been detected by a given side
- [removeAllOwnedMines](../../commands/removeAllOwnedMines.md): Removes ownership of all owned mines/explosive devices of the given unit
- [removeOwnedMine](../../commands/removeOwnedMine.md): Removes ownership over a remotely detonatable mine from the unit.
- [revealMine](../../commands/revealMine.md): Sets given mine as known to the side. (Knowledge about a mine is always shared across all units in a side.)
