Difference between revisions of "DCS func getCategory"

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

Revision as of 23:03, 17 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getCategory Added with: 1.2.0
Member Of: Object, Group, Spot, Airbase
Syntax: enum Object.getCategory(Class Self )
Description: Return an enumerator of the category for the specific object. The enumerator returned is dependent on the category of the object.

See enumerators Group.Category, Object.Category, and Spot.Category for further reference.

Function also works with Unit, Weapon, Static Object, Scenery Object, Airbase. When used with any of these objects the category returned is related to the Object.Category.


Return Value: enum
Return Example: number
Examples:
Related Functions: Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir

Group Functions: isExist, activate, destroy, getCategory, getCoalition, getName, getID, getUnit, getUnits, getSize, getInitialSize, getController, enableEmission

Spot Functions: createLaser. createInfraRed, destroy, getCategory, getPoint, setPoint, getCode, setCode

Notes: