createMine [type, position, markers, placement]

Operand types

[type, position, markers, placement]: Array

Type of returned value

Description

Creates a mine of the given type (type is the name of the subclass of CfgVehicles).
If the markers array contains several marker names, the position of a random one is used.
Otherwise, the given position is used.
The mine is placed inside a circle with this position as its center and placement as its radius.

Used In

ArmA

Example

_mine = createMine ["MineMine", position player, [], 0]
_mine = createMine ["MineMine", [], ["marker1", "marker2", "marker3"], 0]
Search OFPEC COMREF