revealMine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 23: Line 23:
| [[allMines]], [[detectedMines]], [[mineDetectedBy]], [[createMine]], [[mineActive]]
| [[allMines]], [[detectedMines]], [[mineDetectedBy]], [[createMine]], [[mineActive]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 12:01, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets given mine as known to the side. (Knowledge about a mine is always shared across all units in a side.)
Groups:
Mines

Syntax

Syntax:
side revealMine mine
Parameters:
side: Side
mine: Object
Return Value:
Nothing

Examples

Example 1:
west revealMine _mine;

Additional Information

See also:
allMinesdetectedMinesmineDetectedBycreateMinemineActive

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
Posted on September 10, 2017 - 21:59 (UTC)
AgentRev
Manual mine detection introduced in A3 v1.76 can be overridden with something like this: 0 spawn { while {true} do { if ("MineDetector" in items player) then { { if (mineActive _x && !(_x mineDetectedBy playerSide)) then { playerSide revealMine _x; }; } forEach (player nearObjects ["MineBase", 10]); uiSleep 0.1; } else { uiSleep 3; }; }; };