typeOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (clarified)
m (formate)
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_class = typeOf _mi24</pre> |= Example 1
|x1= <code>_class = [[typeOf]] _mi24</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 27: Line 27:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on August 4, 2006 - 12:03
<dd class="notedate">Posted on August 4, 2006 - 12:03
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">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.
<dt class="note">'''[[User:Hardrock|hardrock]]'''<dd class="note">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.


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 14:32, 28 August 2014

Hover & click on the images for description

Description

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

Syntax

Syntax:
String = typeOf vehicleName
Parameters:
vehicleName: 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