DCS func getDesc

From DCS World Wiki - Hoggitworld.com
Revision as of 23:56, 20 March 2022 by Grimes (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Scripting Root

Envrioment: Mission Scripting
Function: getDesc Added with: 1.2.0
Member Of: Object
Syntax: table Object.getDesc(Class Self )
Description: 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.

Function also works with Unit, Weapon, Static Object, Scenery Object, Airbase


Return Value: table
Return Example: SA-15 Tor Descriptor Table
{
 ["massEmpty"] = 34000,
 ["riverCrossing"] = true,
 ["maxSlopeAngle"] = 0.27000001072884,
 ["RCS"] = 5,
 ["box"] = {
  ["min"] = {
   ["y"] = 0.039917565882206,
   ["x"] = -4.5607042312622,
   ["z"] = -1.7571629285812,
  },
  ["max"] = {
   ["y"] = 3.610570192337,
   ["x"] = 4.5179929733276,
   ["z"] = 1.7558742761612,
  },
 },
 ["speedMax"] = 18.055599212646,
 ["life"] = 3,
 ["attributes"] = {
  ["SAM TR"] = true,
  ["Vehicles"] = true,
  ["SAM elements"] = true,
  ["NonArmoredUnits"] = true,
  ["SAM SR"] = true,
  ["Air Defence"] = true,
  ["Ground vehicles"] = true,
  ["RADAR_BAND1_FOR_ARM"] = true,
  ["AA_missile"] = true,
  ["SAM related"] = true,
  ["NonAndLightArmoredUnits"] = true,
  ["All"] = true,
  ["Ground Units"] = true,
  ["SR SAM"] = true,
 },
 ["category"] = 2,
 ["speedMaxOffRoad"] = 18.055599212646,
 ["Kmax"] = 0.050000000745058,
 ["typeName"] = "Tor 9A331",
 ["displayName"] = "SAM SA-15 Tor 9A331",
}
Examples:
Related Functions: Object Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir
Notes: