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


Introduced in

Version:1.00

Description

Description:Count how many units in the array are of the given class. Other than the typeOf functionality, this command also works with parent classes, such as Air, Tank, and Car.

Syntax

Syntax:class countType array
Parameters:
  • class: String - The class.
  • array: Array - Array of units.
Return Value:Number

Examples

Examples:
_count= "Tank" countType list _triggerOne

Additional Information

See also: isKindOf, typeOf, countFriendly, countEnemy, countSide
Multiplayer:
Problems:

Notes

Posted on April 23, 2007 - 16:34
Kronzky
This command can be used on the whole VBS CfgVehicles (i.e. when checking a HMMWV, one could test for "HMMWV50", "Car", "LandVehicle", etc.)