allMines: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9]) ?= ?<code>([^\]]+)?\[\[([a-zA-Z0-9_]+)\]\]([^\]]+)?<\/code>" to "|x$1= <sqf>$2$3$4</sqf>")
m (Some wiki formatting)
 
Line 8: Line 8:
|descr=Returns an array of all mines in the mission
|descr=Returns an array of all mines in the mission


|s1= '''allMines'''
|s1= [[allMines]]


|r1= [[Array]]
|r1= [[Array]]


|x1= <sqf>allMines</sqf>
|x1= <sqf>hint format ["there are %1 mines total", count allMines];</sqf>


|x2= <code>([[allMines]] [[select]] 0) [[mineDetectedBy]] [[west]];</code>
|x2= <sqf>private _isFirstMineDetected = (allMines select 0) mineDetectedBy blufor;</sqf>


|seealso= [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]] [[revealMine]] [[allMissionObjects]]
|seealso= [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]] [[revealMine]] [[allMissionObjects]]
}}
}}

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