DCS func getCategory

From DCS World Wiki - Hoggitworld.com

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

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

Notes: