allMines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 79839 by Ffur2007slx2 5 on 2014-06-22T08:03:57Z)
m (Some wiki formatting)
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.24


|1.24|= Game version
|gr1= Mines


____________________________________________________________________________________________
|descr=Returns an array of all mines in the mission


|Returns an array of all mines in the mission |= Description
|s1= [[allMines]]
____________________________________________________________________________________________


| '''allMines''' |= Syntax
|r1= [[Array]]


| [[Array]] |= Return value
|x1= <sqf>hint format ["there are %1 mines total", count allMines];</sqf>
____________________________________________________________________________________________
 
|x1= <code>[[allMines]]</code> |= Example 1


|x2= <code>([[allMines]] [[select]] 0) [[mineDetectedBy]] [[west]];</code> |= Example 2
|x2= <sqf>private _isFirstMineDetected = (allMines select 0) mineDetectedBy blufor;</sqf>
____________________________________________________________________________________________
 
| [[detectedMines]], [[mineDetectedBy]], [[createMine]], [[mineActive]], [[revealMine]], [[allMissionObjects]] |= See also


|seealso= [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]] [[revealMine]] [[allMissionObjects]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 21:51, 7 May 2022

Hover & click on the images for description

Description

Description:
Returns an array of all mines in the mission
Groups:
Mines

Syntax

Syntax:
allMines
Return Value:
Array

Examples

Example 1:
hint format ["there are %1 mines total", count allMines];
Example 2:
private _isFirstMineDetected = (allMines select 0) mineDetectedBy blufor;

Additional Information

See also:
detectedMines mineDetectedBy createMine mineActive revealMine allMissionObjects

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