addOwnedMine: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "|Game Version= (number surrounded by NO SPACES)" to "|Game Version (number surrounded by NO SPACES)=")
(Added locality and multiplayer information)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.62


|1.62|Game Version (number surrounded by NO SPACES)=
|eff= local
____________________________________________________________________________________________
|arg= global


| Sets ownership over a remotely detonatable mine to the unit. |DESCRIPTION=
|gr1= Mines
____________________________________________________________________________________________


| unit [[addOwnedMine]] mine |SYNTAX=
|descr= 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.


|p1= unit: [[Object]] |PARAMETER1=
|mp= Multiple players can own the same mine.


|p2= mine: [[Object]] - the mine object |PARAMETER2=
|s1= unit [[addOwnedMine]] mine


| Nothing |RETURNVALUE=
|p1= unit: [[Object]]
____________________________________________________________________________________________
 
|x1= <code>[[player]] [[addOwnedMine]] _superMine;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[allMines]], [[createMine]], [[detectedMines]], [[mineActive]], [[getAllOwnedMines]], [[removeOwnedMine]], [[removeAllOwnedMines]] |SEEALSO=
|p2= mine: [[Object]] - the mine object
}}


<dl class="command_description">
|r1= [[Nothing]]
<!-- BEGIN Note Section -->


<!-- END Note Section -->
|x1= <sqf>player addOwnedMine _superMine;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[allMines]] [[createMine]] [[detectedMines]] [[mineActive]] [[getAllOwnedMines]] [[removeOwnedMine]] [[removeAllOwnedMines]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
}}

Latest revision as of 17:39, 15 December 2025

Hover & click on the images for description

Description

Description:
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.
Multiplayer:
Multiple players can own the same mine.
Groups:
Mines

Syntax

Syntax:
unit addOwnedMine mine
Parameters:
unit: Object
mine: Object - the mine object
Return Value:
Nothing

Examples

Example 1:
player addOwnedMine _superMine;

Additional Information

See also:
allMines createMine detectedMines mineActive getAllOwnedMines removeOwnedMine removeAllOwnedMines

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note