isKindOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|ISKINDOF]]
[[Category:Scripting Commands ArmA|ISKINDOF]]


<new command not populated>


<h2 style="color:#000066">'''''object'' isKindOf ''typeName'''''</h2>


<h2 style="color:#000066">''''' isKindOf '''''</h2>


'''Operand types:'''
'''object:''' [[Object]]


'''Operand types:'''
'''typeName:''' [[String]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Boolean]]


'''Compatibility:'''
'''Compatibility:'''
Version 2.30 required.


'''Description:'''
'''Description:'''
Checks whether the object is of the given type.




'''Example:'''
'''Example:'''
vehicle player isKindOf "Tank"

Revision as of 15:40, 2 July 2006


object isKindOf typeName


Operand types:

object: Object

typeName: String

Type of returned value:

Boolean

Compatibility:

Version 2.30 required.

Description:

Checks whether the object is of the given type.


Example:

vehicle player isKindOf "Tank"