Difference between revisions of "DCS func getTypeName"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 41: Line 41:
 
}}
 
}}
 
[[Category:Class Functions|getTypeName]]
 
[[Category:Class Functions|getTypeName]]
 +
[[Category:Game Patch 1.2.0|getTypeName]]

Latest revision as of 23:56, 20 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getTypeName Added with: 1.2.0
Member Of: Object
Syntax: string Object.getTypeName(Class Self )
Description: Return a string of the objects type name.

Function also works with Unit, Weapon, Static Object, Scenery Object, Airbase


Return Value: string
Return Example: "A-10C", "KA-50", "BTR-80"
Examples:
Related Functions: Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir
Notes: Some objects, namely static and scenery objects may return the name of the 3d model used to render the object.