Difference between revisions of "DCS func getNumber"

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

Latest revision as of 00:02, 21 March 2022

Scripting Root

Envrioment: Mission Scripting
Function: getNumber Added with: 1.2.0
Member Of: Unit
Syntax: number Unit.getNumber(Class Self )
Description: Returns a numerical value of the default index of the specified unit within the group as defined within the mission editor or addGroup scripting function. This value is not changed as units within the group are destroyed.

Return Value: number
Return Example: 4
Related Functions: Unit Functions: isActive, getPlayerName, getID, getNumber, getController, getGroup, getCallsign, getLife, getLife0, getFuel, getAmmo, getSensors, hasSensors, getRadar, getDrawArgumentValue, getNearestCargos, enableEmission, getDescentCapacity

Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir

Coalition Object Functions: getCoalition, getCountry