Note that this command uses AGL (very similar to ASL) positions, so if you want to use the moored or seabed mine, you'll have to find the appropriate negative z value that is underwater and convert that to ASL. Also note that you can't adjust the positions of sea mines after they've been created. The command is either ignored or not propagated across the network to clients.
Description
Creates a mine of the given type.
If the markers array only contains one marker name, it is ignored and the position parameter is used instead. If markers contains multiple marker names, one of them is chosen randomly and used as the center of the placement area.
This command creates objects of the CfgAmmo class named in configFile >> "CfgVehicles" >> _type >> "ammo".
Note
Unit ability to detect mines depends on many factors: The starting value is defined in config, for example
./CfgVehicles/B_soldier_F/detectSkill, which in this case is 12. Mine specialist value for example, defined in./CfgVehicles/B_soldier_exp_F/detectSkillis 38. This value is then dynamically reduced depending on factors such as distance, if a unit is in a vehicle, if it is day or night time, how directly unit is looking at the mine, how fast unit is moving, how inconspicuous is the mine or even if it is visible.
Syntax
createMine [type, position, markers, placement]
Parameters:
type: String - mine class name fromCfgVehiclesposition: Object or PositionAGLmarkers: Array of Strings - marker name(s)placement: Number - placement radius
Returns: Object
Examples
Example 1
_mine = createMine ["APERSMine", ASLToAGL getPosASL player, [], 3];
Example 2
Create a satchel charge and give the player control over it:
_charge = createMine ["SatchelCharge_F", player, [], 0];
player addOwnedMine _charge;
See also
allMines · detectedMines · mineDetectedBy · mineActive · revealMine · getAllOwnedMines · addOwnedMine · removeOwnedMine · removeAllOwnedMines
Community notes
The following explosives used in Arma 3 can be created with this command: {| class="wikitable" ! Mines ! Remote detonation charges |- style="vertical-align: top" |
"ATMine""APERSMine""APERSBoundingMine""SLAMDirectionalMine""APERSTripMine""UnderwaterMine""UnderwaterMineAB""UnderwaterMinePDM"|"SatchelCharge_F""DemoCharge_F""Claymore_F""IEDUrbanBig_F""IEDLandBig_F""IEDUrbanSmall_F""IEDLandSmall_F"