Arma 3 Scripting

Command in Sides, Object Detection

countEnemy

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

Description

Count how many units in the array are considered enemy to the given unit.

Syntax

unit countEnemy others

Parameters:

Returns: Number

Examples

Example 1

_num = player countEnemy list _triggerOne;

See also

countFriendly · count · countUnknown · countSide · countType