revealMine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(52 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|gr1= Mines
____________________________________________________________________________________________


| Sets given mine as known to the side. |= Description
|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 |= Syntax
|s1= side [[revealMine]] mine


|p1= side: [[Side]] |= PARAMETER1
|p1= side: [[Side]]


|p2= mine: [[Object]] |= PARAMETER2
|p2= mine: [[Object]]


| [[Nothing]] |= RETURNVALUE
|r1= [[Nothing]]


|x1= <sqf>west revealMine _mine;</sqf>


|x1= <code>
|seealso= [[allMines]] [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]]
</code>|= EXAMPLE1
}}
 
____________________________________________________________________________________________


|  |= SEEALSO
<dl class="command_description">


| |= MPBEHAVIOUR
<dt></dt>
____________________________________________________________________________________________
<dd class="notedate">Posted on 2017-09-10 - 21:59 (UTC)</dd>
}}
<dt class="note">[[User:AgentRev|AgentRev]]</dt>
<dd class="note">
Manual mine detection introduced in A3 v1.76 can be overridden with something like this:
<sqf>
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]);


<h3 style='display:none'>Notes</h3>
uiSleep 0.1;
<dl class='command_description'>
}
<!-- Note Section BEGIN -->
else
{
uiSleep 3;
};
};
};
</sqf>
</dd>


<!-- Note Section END -->
</dl>
</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 11:34, 3 September 2024

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; }; }; };