countType
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.00
Description
- Description:
- Count how many units in the array are of given type. Other than typeOf this command also works with parent classes like "Air", "Tank" and "Car". For a full class reference see Classes.
Syntax
- Syntax:
- Number = "type" countType Array
- Parameters:
- type: String - vehicle class type
- Array -with elements of type Object
- Return Value:
- Integer
Examples
- Example 1:
_count= "Tank" countType list _triggerOne
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- isKindOf, typeOf, countFriendly, countEnemy, countSide
Notes
Notes
Notes
- Posted on April 23, 2007 - 16:34
- Kronzky
- This command can be used on the whole hierarchical class tree (i.e. when checking a HMMWV, one could test for "HMMWV50", "Car", "LandVehicle", etc.)

