Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Checks whether the object is (a subtype) of the given type.

The command works with classes contained in CfgVehicles or CfgAmmo, but not with others (for example, CfgMagazines or CfgWeapons). To check those, use fn vbs isKindOf.

Syntax

Syntax:object isKindOf typeName
Parameters:
  • object: Object - Object to check.
  • typeName: String - Type to check.
Return Value:Boolean

Alternative Syntax

Syntax:typeName1 isKindOf typeName2
Parameters:
  • typeName1: String - First object type to check.
  • typeName2: String - Second object type to check.
Return Value:Boolean

Examples

Examples:vehicle player isKindOf "Tank""BMP2" isKindOf "Tank"

Additional Information

See also: fn vbs isKindOf, inheritsFrom, objectType, configParent
Multiplayer:
Problems:

Notes

Posted on April 23, 2007 - 16:34

Kronzky
This command can be used on the whole VBS CfgVehicles (i.e. when checking a HMMWV, one could test for "HMMWV50", "Car", "LandVehicle", etc., all of which would return true.)