Arma 3 Scripting

Function in Combat

BIS_fnc_enemyDetected

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

Description

Returns true if unit knows about nearby enemy unit or driven vehicle.

Syntax

unit call BIS_fnc_enemyDetected

Parameters:

Returns: Boolean: True if an enemy was detected

Examples

Example 1

private _enemyDetected = _unit call BIS_fnc_enemyDetected;

Example 2

private _enemyDetected = [_unit, 100] call BIS_fnc_enemyDetected;

See also

BIS_fnc_enemyTargets