---
name: "BIS_fnc_taskAttack"
type: function
status: ok
groups: ["Tasks"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_taskAttack
revid: 327472
updated: 2022-07-12T22:12:11Z
---

# BIS_fnc_taskAttack

*Function · Tasks · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

This function adds a Seek and Destroy waypoint on defined position to the group and set its [behaviour](../commands/behaviour.md) to "AWARE". If the group has other waypoints, the waypoint will be added at the end of the list.

## Syntax

```sqf
[group, position] call BIS_fnc_taskAttack
```

**Parameters:**

- `group`: [Group](../topics/Group.md)
- `position`: [Position](../topics/Position.md)

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
[opforGroup, getPosATL player] call BIS_fnc_taskAttack;
```

## See also

[addWaypoint](../commands/addWaypoint.md) · Waypoints · [behaviour](../commands/behaviour.md) · [BIS_fnc_taskDefend](../functions/BIS_fnc_taskDefend.md) · [BIS_fnc_taskPatrol](../functions/BIS_fnc_taskPatrol.md)

<sub>Source: [BI Community Wiki — BIS fnc taskAttack](https://community.bistudio.com/wiki/BIS_fnc_taskAttack) (revision 327472).</sub>
