Envrioment:
|
Mission Scripting
|
|
Function:
|
getDescentCapacity
|
Added with: 2.5.6
|
|
Member Of:
|
Unit
|
Syntax:
|
number Unit.getDescentCapacity(Class Self )
|
Description:
|
Returns the number of infantry that can be embark onto the aircraft. Only returns a value if run on airplanes or helicopters.
Returns nil if run on ground or ship units.
|
|
Return Value:
|
number
|
Return Example:
|
14
|
|
Examples:
|
Returns the capacity of a unit named "Huey"
local hueyCap = Unit.getByName('Huey'):getDescentCapacity()
|
Related Functions:
|
Unit Functions: isActive, getPlayerName, getID, getNumber, getCategoryEx, getObjectID, 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
|
Notes:
|
As of DCS 1.5 this function works on both ground units and aircraft.
|