BIS fnc wpDemine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \[\[Category:\{\{Name\|arma3\}\}:[_ ]Functions\|[^ ]+\]\]" to "")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function
| arma3|1.76|gr1= Waypoints| 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).| [group, position, target, clearUnknownMines] call [[BIS_fnc_wpDemine]]_group = _this param [0,grpnull,[grpnull]];
_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|p2= position: [[Position]] - the demining centre. Demining radius is defined by [[waypointCompletionRadius]], and defaults to 50 if set to 0|p3= target: [[Anything]] - (Optional, default [[objNull]]) unused parameter|p4= clearUnknownMines: [[Boolean]] - (Optional, default [[true]]) should the group demine all mines or only the one [[detectedMines|its side knows about]]|r1= [[Nothing]]
|game1= arma3
|version1= 1.76


|x1= <code><nowiki>[</nowiki>[[group]] [[player]], [[getMarkerPos]] "mineField", [[objNull]], [[false]]] [[call]] [[BIS_fnc_wpDemine]];</code>|seealso= [[Waypoints]], [[:Category:Command_Group:_Waypoints|Waypoints Command Group]]
|gr1= Waypoints
 
|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).
 
|s1= [group, position, target, clearUnknownMines] call [[BIS_fnc_wpDemine]]
 
|p1= group: [[Group]] - a group with a mine expert
 
|p2= position: [[Position]] - the demining centre. Demining radius is defined by [[waypointCompletionRadius]], and defaults to 50 if set to 0
 
|p3= target: [[Anything]] - (Optional, default [[objNull]]) unused parameter
 
|p4= clearUnknownMines: [[Boolean]] - (Optional, default [[true]]) should the group demine all mines or only the one [[detectedMines|its side knows about]]
 
|r1= [[Nothing]]
 
|x1= <code>[<nowiki/>[[group]] [[player]], [[getMarkerPos]] "mineField", [[objNull]], [[false]]] [[call]] [[BIS_fnc_wpDemine]];</code>
 
|seealso= [[Waypoints]], [[:Category:Command_Group:_Waypoints|Waypoints Command Group]]
}}
}}

Revision as of 20:25, 13 June 2021

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