Returns an ammo table for all types of loaded ammunition on a given object. Ammo table is indexed by ammo type and contains a weapon description table and a count variable defining "how much" is on board.
Returns an instance of the calling class for the object of a specified name. The objects name is defined either in the mission editor or within functions that can dynamically spawn objects. All static objects and unit names must be unique. However, groups may have the same name as a unit or static object.
This function can provide access to non activated units and groups.
Returns the category of the Unit.
Returns the coalition of the Unit.
Returns the controller of the specified object. Ships and ground units can only be controlled at a group level.
Airplanes and helicopters can be controlled at both a group and unit level
Returns an enumerator that defines the country that an object currently belongs to
Return a description table of the given object. Table entries are dependent on the category of object and the sub-categories that may exist within that object type.
Returns a percentage of the current fuel remaining in an aircraft's inventory based on the maximum possible fuel load. Value ranges from 0.00 to 1.00. If external fuel tanks are present the value may display above 1.0. Fuel is always drained from the external tanks before moving to internal tanks. Ground vehicles and ships will always return a value of 1.
Returns a number which defines the unique mission id of a given object.
Returns the current "life" of a unit. Also referred to as "hit points". All units in DCS have a value that defines how much life is left. If this value is less than 1 the unit is considered "dead". Ground and ship units that are on fire and in the process of "cooking off" will return a life value of 0 until the object explodes. Aircraft are more complex due to sub-systems and damage models which will effect the life value.
Returns the initial life value of a unit. All units spawn with "max HP" and this value will never change. Can be used with Unit.getLife() to determine the percentage of a units life as each unit has a unique life value.
Returns a vec3 table of the x, y, and z coordinates for the position of the given object in 3D space. Coordinates are dependent on the position of the maps origin.
In the case of the Caucuses theater, the origin is located in the Crimean region of the map.
Returns a Position3 table of the objects current position and orientation in 3D space. X, Y, Z values are unit vectors defining the objects orientation. Coordinates are dependent on the position of the maps origin. In the case of the Caucuses theater, the origin is located in the Crimean region of the map.
Return a string of the objects type name.
Returns a vec3 table of the objects velocity vectors.
Returns a boolean value if the unit is activated. Units set to late activation would return false if checked by this function.
Version
2.9.10.4160