Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:Counts how many units in the array are considered friendly to the given unit.

Syntax

Syntax:unit countFriendly array
Parameters:
  • unit: Object - The unit.
  • array: Array - Array with units.
Return Value:Number

Examples

Examples:
_num=player countFriendly list _triggerOne

Additional Information

See also: countEnemy, countSide, countUnknown
Multiplayer: 
Problems: 

Notes







Posted on August 3, 2006 - 14:28
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.