typeOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the class type of a given object or vehicle. |= Description
| Returns the class type of a given object . |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''typeOf''' vehicle |= Syntax
| '''typeOf''' [[Object]]|= Syntax


|p1= vehicle: [[Object]] |= Parameter 1
|p1= [[Object]] |= Parameter 1


| [[String]] |= Return value
| [[String]] |= Return value

Revision as of 01:33, 1 September 2007

Hover & click on the images for description

Description

Description:
Returns the class type of a given object .
Groups:
Uncategorised

Syntax

Syntax:
typeOf Object
Parameters:
Object
Return Value:
String

Examples

Example 1:
_class = typeOf _mi24

Additional Information

See also:
countTypeisKindOf

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

Posted on August 4, 2006 - 12:03
hardrock
Try using this on an object pre-placed in the mission editor (such as a house): hint format["%1", typeof object xxx] Now place an object in the editor, save the map, and open up the Mission.sqm. Find the line: vehicle="XXX", and replace XXX with the name of the object that you found above. Save it, and load the map.

Bottom Section