Difference between revisions of "DCS Class Object"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 33: Line 33:
  
 
}}
 
}}
 +
[[Category:Game Patch 1.2.0|Object class]]
 +
[[Category:Scripting|Object Class]]

Latest revision as of 23:55, 20 March 2022

Scripting Root

Class Name: Object Added with: 1.2.0
Extends: Unit, Weapon, Static Object, Scenery Object, Airbase
Inherits: none
Description: Represents an object with body, unique name, category and type. Non-final class
Member Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir
Obtained Via: Static Functions Functions Events
Most of them :)
Enumerator Types: Object.Category enum that stores object categories.
Object.Category
  UNIT    1
  WEAPON  2
  STATIC  3
  BASE    4
  SCENERY 5
  Cargo   6
Description Table Structure: All objects description tables contain these values. Every other value is dependent on the type of object it is; aircraft, building, ground unit, airbase, etc...
Object.Desc = extends Desc {
  life = number, --initial life level
  box = Box3 --bounding box of collision geometry
}
Notes: