typeOf: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (Text replacement - "|game5= arma2oa |version5= 1.51 " to "|game5= arma2oa |version5= 1.50 ")
Line 19: Line 19:
|game5= arma2oa
|game5= arma2oa


|version5= 1.51
|version5= 1.50


|game6= tkoh
|game6= tkoh

Revision as of 18:52, 27 April 2021

Hover & click on the images for description

Description

Description:
Returns the config class name of given object or "" if object does not have a config class.
Groups:
Object Manipulation

Syntax

Syntax:
typeOf object
Parameters:
object: Object
Return Value:
String - Config class or ""

Examples

Example 1:
if (typeOf vehicle player == "B_Heli_Light_01_armed_F") then { hint "Player is in a AH-9 Pawnee"; };

Additional Information

See also:
countTypeisKindOfconfigOf

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
Posted on August 4, 2006 - 12:03
hardrock
Logo A0.png1.90 Try using this on an object pre-placed in the mission editor such as a house: hint format ["%1", typeOf object]; // Shows the class name (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. This method is no longer available since Armed Assault.