Arma 3 Scripting

countSide

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

Command · also in Object Detection · Markdown · JSON · original wiki page

Description

Returns how many units in the given array belong to given side.

Syntax

side countSide array

Parameters:

Returns: Number

Examples

Example 1

_num = west countSide list _triggerOne;

Example 2

_numCivPlayable = civilian countSide playableUnits;

See also

countFriendly · countEnemy · countUnknown · count · countType · playersNumber · units · allUnits

Community notes

AgentRev

This command considers captive units as civilians, regardless of their group's side.