revealMine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Text replacement - ">Posted on September ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-09-$1")
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 0.50
|0.50


|gr1= Mines
|gr1= Mines


| Sets given mine as known to the side. (Knowledge about a mine is always shared across all units in a side.)
|descr= Sets given mine as known to the side. (Knowledge about a mine is always shared across all units in a side.)


| side '''revealMine''' mine
|s1= side [[revealMine]] mine


|p1= side: [[Side]]
|p1= side: [[Side]]
Line 15: Line 14:
|p2= mine: [[Object]]
|p2= mine: [[Object]]


| [[Nothing]]
|r1= [[Nothing]]
 
 
|x1= <code>[[west]] [[revealMine]] _mine;</code>
 


| [[allMines]], [[detectedMines]], [[mineDetectedBy]], [[createMine]], [[mineActive]]
|x1= <sqf>west revealMine _mine;</sqf>


|
|seealso= [[allMines]] [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]]
}}
}}


<dl class="command_description">


{{GameCategory|arma3|New Scripting Commands}}
<dt></dt>
{{GameCategory|arma3|Scripting Commands}}
<dd class="notedate">Posted on 2017-09-10 - 21:59 (UTC)</dd>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on September 10, 2017 - 21:59 (UTC)</dd>
<dt class="note">[[User:AgentRevolution|AgentRev]]</dt>
<dt class="note">[[User:AgentRevolution|AgentRev]]</dt>
<dd class="note">
<dd class="note">
Manual mine detection introduced in A3 v1.76 can be overridden with something like this:
Manual mine detection introduced in A3 v1.76 can be overridden with something like this:
<code>0 [[spawn]]
<sqf>0 spawn
{
{
while {true} do
while {true} do
{
{
if ("MineDetector" [[in]] [[items]] [[player]]) then
if ("MineDetector" in items player) then
{
{
{
{
if ([[mineActive]] _x && !(_x [[mineDetectedBy]] [[playerSide]])) then
if (mineActive _x && !(_x mineDetectedBy playerSide)) then
{
{
playerSide [[revealMine]] _x;
playerSide revealMine _x;
};
};
} [[forEach]] (player [[nearObjects]] ["MineBase", 10]);
} forEach (player nearObjects ["MineBase", 10]);


[[uiSleep]] 0.1;
uiSleep 0.1;
}
}
else
else
Line 57: Line 48:
};
};
};
};
};</code>
};</sqf>
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 00:10, 14 May 2023

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:
allMines detectedMines mineDetectedBy createMine mineActive

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 2017-09-10 - 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; }; }; };