Arma 3 Scripting

countFriendly

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · Markdown · JSON · 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

Community notes

Hardrock

Notes from before the conversion:

The countFriendly command seem to count the number of units from the array that are considered to be of the given type by the whole side, not just the specified unit.