isKindOf

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00

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

Syntax:
Boolean = Object isKindOf "typeName"
Parameters:
Object
typeName: String
Return Value:
Boolean

Alternative Syntax

Syntax:
Boolean = "typeName1" isKindOf "typeName2"
Parameters:
typeName1: String
typeName2: String
Return Value:
Boolean

Examples

Example 1:
vehicle player isKindOf "Tank"
Example 2:
"BMP2" isKindOf "Tank"

Additional Information

Multiplayer:
Behaviour unknown.
See also:
countType, typeOf

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


Bottom Section

Personal tools
Buy ArmA now!