Arma 3 Scripting

BIS_fnc_taskDefend

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

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.

Syntax

[group, position] call BIS_fnc_taskDefend

Parameters:

Returns: Boolean

Examples

Example 1

[group player, getPosATL leader player] call BIS_fnc_taskDefend;

See also

Functions Library · BIS_fnc_taskAttack · BIS_fnc_taskPatrol

Community notes

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;