isKindOf
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Armed Assault
- Version:
- 1.00
Description
- Description:
- Checks whether the object is of the given type.
Syntax
Alternative Syntax
- Syntax:
- Boolean = "typeName1" isKindOf "typeName2"
- Parameters:
- typeName1: String
- typeName2: String
- Return Value:
- Boolean
Examples
Additional Information
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., all of which would return true.)
- Posted on 16 Apr, 2008
- Dr_Eyeball
- It appears isKindOf is limited to the CfgVehicles branch of the class hierachy.
So CfgWeapons, CfgMagazines, etc will return false for checks like:("M9" isKindOf "Pistol") returns false

