BIS fnc wpDemine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Add See also)
m (Some wiki formatting)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.76


|1.76|Game version=
|gr1= Waypoints
____________________________________________________________________________________________


| Scripted "CLEAR MINES" [[Waypoint_types|Advanced Waypoint]].
|descr= Scripted "CLEAR MINES" [[Waypoints|Advanced Waypoint]].
The script needs a unit with the abiility to demine (engineer or explosive specialist [[getUnitTrait|trait]] '''and''' a toolkit). |Description=
The script needs a unit with the abiility to demine (engineer or explosive specialist [[getUnitTrait|trait]] '''and''' a toolkit).
____________________________________________________________________________________________


| [group, position, target, clearUnknownMines] call [[BIS_fnc_wpDemine]] |Syntax=
|s1= [group, position, target, clearUnknownMines] call [[BIS_fnc_wpDemine]]


_group = _this param [0,grpnull,[grpnull]];
|p1= group: [[Group]] - a group with a mine expert
_pos = _this param [1,[],[[]],3];
_target = _this param [2,objnull,[objnull]];
_clearUnknown = _this param [3,true,[true]];


|p1= group: [[Group]] - a group with a mine expert |Parameter 1=
|p2= position: [[Position]] - the demining centre. Demining radius is defined by [[waypointCompletionRadius]], and defaults to 50 if set to 0


|p2= position: [[Position]] - the demining centre. Demining radius is defined by [[waypointCompletionRadius]], and defaults to 50 if set to 0 |Parameter 2=
|p3= target: [[Anything]] - (Optional, default [[objNull]]) unused parameter


|p3= target: [[Anything]] - (Optional, default [[objNull]]) unused parameter |Parameter 3=
|p4= clearUnknownMines: [[Boolean]] - (Optional, default [[true]]) should the group demine all mines or only the one [[detectedMines|its side knows about]]


|p4= clearUnknownMines: [[Boolean]] - (Optional, default [[true]]) should the group demine all mines or only the one [[detectedMines|its side knows about]] |Parameter 4=
|r1= [[Nothing]]


| [[Nothing]] |Return value=
|x1= <sqf>[group player, getMarkerPos "mineField", objNull, false] call BIS_fnc_wpDemine;</sqf>
____________________________________________________________________________________________


|x1= <code><nowiki>[</nowiki>[[group]] [[player]], [[getMarkerPos]] "mineField", [[objNull]], [[false]]] [[call]] [[BIS_fnc_wpDemine]];</code> |Example 1=
|seealso= [[Waypoints]] [[:Category:Command_Group:_Waypoints|Waypoints Command Group]]
____________________________________________________________________________________________
 
| [[Waypoint_types|Waypoint types]], [[:Category:Command_Group:_Waypoints|Waypoints Command Group]] |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:wpDemine}}]]
[[Category:Function Group: Waypoints|{{uc:wpDemine}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:wpDemine}}]]

Latest revision as of 13:19, 6 May 2022

Hover & click on the images for description

Description

Description:
Scripted "CLEAR MINES" Advanced Waypoint. The script needs a unit with the abiility to demine (engineer or explosive specialist trait and a toolkit).
Execution:
call
Groups:
Waypoints

Syntax

Syntax:
[group, position, target, clearUnknownMines] call BIS_fnc_wpDemine
Parameters:
group: Group - a group with a mine expert
position: Position - the demining centre. Demining radius is defined by waypointCompletionRadius, and defaults to 50 if set to 0
target: Anything - (Optional, default objNull) unused parameter
clearUnknownMines: Boolean - (Optional, default true) should the group demine all mines or only the one its side knows about
Return Value:
Nothing

Examples

Example 1:
[group player, getMarkerPos "mineField", objNull, false] call BIS_fnc_wpDemine;

Additional Information

See also:
Waypoints Waypoints Command Group

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