revealMine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 44: Line 44:
<dl class="command_description">
<dl class="command_description">
<dd class="notedate">Posted on September 10, 2017 - 21:59 (UTC)</dd>
<dd class="notedate">Posted on September 10, 2017 - 21:59 (UTC)</dd>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</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
<code>0 [[spawn]]
{
{
while {true} do
[[while]] {[[true]]} do
{
{
{
{
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;
};
};
};</code>
};</code>

Revision as of 23:01, 10 September 2017

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:
Uncategorised

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

Notes

Bottom Section

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 (mineActive _x && !(_x mineDetectedBy playerSide)) then { playerSide revealMine _x; }; } forEach (player nearObjects ["MineBase", 10]); uiSleep 0.1; }; };