countType

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00Arguments of this scripting command don't have to be local to the client the command is executed on

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

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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.)

Bottom Section

Personal tools
Buy ArmA now!