isKindOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ISKINDOF]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |ISKINDOF]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|ISKINDOF]]


| arma |= Game name


<h2 style="color:#000066">'''''object'' isKindOf ''typeName'''''</h2>
|2.3|= Game version
____________________________________________________________________________________________


| Checks whether the object is of the given type. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| object '''isKindOf''' typeName |= Syntax


'''object:''' [[Object]]
|p1= object: [[Object]] |= Parameter 1


'''typeName:''' [[String]]
|p2= typeName: [[String]] |= Parameter 2


'''Type of returned value:'''
| [[Boolean]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>vehicle player isKindOf "Tank"</pre> |= Example 1
____________________________________________________________________________________________


[[Boolean]]
|  |= See also


'''Compatibility:'''
}}


Version 2.30 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Checks whether the object is of the given type.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|ISKINDOF]]
 
[[Category:Scripting Commands OFP Elite |ISKINDOF]]
'''Example:'''
[[Category:Scripting Commands ArmA|ISKINDOF]]
 
vehicle player '''isKindOf''' "Tank"

Revision as of 01:35, 2 August 2006

-wrong parameter ("Arma") defined!-2.3
Hover & click on the images for description

Description

Description:
Checks whether the object is of the given type.
Groups:
Uncategorised

Syntax

Syntax:
object isKindOf typeName
Parameters:
object: Object
typeName: String
Return Value:
Boolean

Examples

Example 1:
vehicle player isKindOf "Tank"

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section