Arma 3 Scripting

Command in Sides

countFriendly

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

Description

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

Syntax

unit countFriendly others

Parameters:

Returns: Number

Examples

Example 1

_num = player countFriendly list _triggerOne;

See also

count · countEnemy · countUnknown · countSide · countType