Preacher
The easiest way to use this function is to create a group, then add the following code to the group leader's init field:
[group this, getPosATL this] call BIS_fnc_taskDefend;
Results appear below as you type; use the arrow keys to move through them.
Function · Markdown · JSON · original wiki page
Group will man nearby static defenses within a 100 metre radius of the defense position and guard the position. Some units will man weapons, others will patrol and the remainder will sit on the ground.
[group, position] call BIS_fnc_taskDefend
Parameters:
Returns: Boolean
[group player, getPosATL leader player] call BIS_fnc_taskDefend;
Functions Library · BIS_fnc_taskAttack · BIS_fnc_taskPatrol
The easiest way to use this function is to create a group, then add the following code to the group leader's init field:
[group this, getPosATL this] call BIS_fnc_taskDefend;
The more correct way is to:
[group this, getPosATL this] call BIS_fnc_taskDefend;
{ [_x, getPosATL leader _x] call BIS_fnc_taskDefend } forEach [grpName1, grpName2];