revealMine: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 16: | Line 16: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>west revealMine _mine;</sqf> | ||
|seealso= [[allMines]] [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]] | |seealso= [[allMines]] [[detectedMines]] [[mineDetectedBy]] [[createMine]] [[mineActive]] | ||
Line 24: | Line 24: | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2017-09-10 - 21:59 (UTC)</dd> | ||
<dt class="note">[[User: | <dt class="note">[[User:AgentRev|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: | ||
< | <sqf> | ||
0 spawn | |||
{ | { | ||
while {true} do | while {true} do | ||
Line 35: | Line 36: | ||
{ | { | ||
{ | { | ||
if (mineActive _x && !(_x mineDetectedBy | if (mineActive _x && !(_x mineDetectedBy playerSide)) then | ||
{ | { | ||
playerSide | playerSide revealMine _x; | ||
}; | }; | ||
} | } forEach (player nearObjects ["MineBase", 10]); | ||
uiSleep 0.1; | |||
} | } | ||
else | else | ||
Line 48: | Line 49: | ||
}; | }; | ||
}; | }; | ||
};</ | }; | ||
</sqf> | |||
</dd> | </dd> | ||
</dl> | </dl> |
Latest revision as of 11:34, 3 September 2024
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:
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: