Arma 3 Scripting

Function in Combat

BIS_fnc_enemyTargets

Also available as Markdown and JSON, or read the original wiki page.

Description

Return list of nearby enemy targets for given unit.

Syntax

unit call BIS_fnc_enemyTargets

Parameters:

Returns: Array of enemies, empty if unit doesn't know about any enemy

Examples

Example 1

private _targets = _unit call BIS_fnc_enemyTargets;

See also

BIS_fnc_enemyDetected