getAllOwnedMines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game Version= (number surrounded by NO SPACES)" to "|Game Version (number surrounded by NO SPACES)=")
mNo edit summary
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- getAllOwnedMines -->
{{RV|type=command
{{Command|Comments=
____________________________________________________________________________________________


|A3|= Game
|game1= arma3
|version1= 1.62


|1.62|Game Version (number surrounded by NO SPACES)=
|gr1= Mines


____________________________________________________________________________________________
|descr= Gets all mine objects this unit has ownership over.


| Gets all mine objects this unit has ownership over. |DESCRIPTION=
|s1= [[getAllOwnedMines]] unit
____________________________________________________________________________________________


| [[getAllOwnedMines]] unit |SYNTAX=
|p1= unit: [[Object]]


|p1= unit: [[Object]] |PARAMETER1=
|r1= [[Array]] of [[Object]]s


|x1= <sqf>_mines = getAllOwnedMines player;</sqf>


| [[Array]] of mine object |RETURNVALUE=
|seealso= [[allMines]] [[createMine]] [[detectedMines]] [[mineActive]] [[removeOwnedMine]] [[addOwnedMine]] [[removeAllOwnedMines]]
 
____________________________________________________________________________________________
 
|x1= <code>_mines = [[getAllOwnedMines]] [[player]];</code> |EXAMPLE1=
 
____________________________________________________________________________________________
 
| [[allMines]], [[createMine]], [[detectedMines]], [[mineActive]], [[removeOwnedMine]], [[addOwnedMine]], [[removeAllOwnedMines]] |SEEALSO=
____________________________________________________________________________________________
 
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">[[User:User Name|]]</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:10, 28 September 2023

Hover & click on the images for description

Description

Description:
Gets all mine objects this unit has ownership over.
Groups:
Mines

Syntax

Syntax:
getAllOwnedMines unit
Parameters:
unit: Object
Return Value:
Array of Objects

Examples

Example 1:
_mines = getAllOwnedMines player;

Additional Information

See also:
allMines createMine detectedMines mineActive removeOwnedMine addOwnedMine removeAllOwnedMines

Notes

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