countType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 18: Line 18:
Count how many vehicles in '''array''' are of given '''type'''.
Count how many vehicles in '''array''' are of given '''type'''.


For vehicle types see [cfgVehicles].
For vehicle types see [[cfgVehicles]].





Revision as of 17:26, 16 April 2006

back to COMREF

typeName countType array


Operand types:

typeName: String

array: Array

Type of returned value:

Number

Description:

Count how many vehicles in array are of given type.

For vehicle types see cfgVehicles.


Example:

"Tank" countType list triggerOne