Module Object

Wrapper -- OBJECT wraps the DCS Object derived objects.


Author: FlightControl

Contributions:


Global(s)

OBJECT

OBJECT class, extends Base#BASE

OBJECT handles the DCS Object objects:

  • Support all DCS Object APIs.

Type DCSObject

DCSObject.id_

The ID of the controllable in DCS

Type OBJECT

OBJECT:Destroy()

Destroys the OBJECT.

OBJECT:GetID()

Returns the unit's unique identifier.

OBJECT:New(ObjectName, Test)

Create a new OBJECT from a DCSObject

OBJECT.ObjectName

The name of the Object.

Global(s)

#OBJECT OBJECT

OBJECT class, extends Base#BASE

OBJECT handles the DCS Object objects:

  • Support all DCS Object APIs.
  • Enhance with Object specific APIs not in the DCS Object API set.
  • Manage the "state" of the DCS Object.

OBJECT constructor:

The OBJECT class provides the following functions to construct a OBJECT instance:

Type Object

Type DCSObject

A DCSObject

Field(s)

DCSObject.id_

The ID of the controllable in DCS

Type OBJECT

Extends Core.Base#BASE

Field(s)

OBJECT:Destroy()

Destroys the OBJECT.

Return values

  1. #boolean: true if the object is destroyed.

  2. #nil: The DCS Unit is not existing or alive.

OBJECT:GetID()

Returns the unit's unique identifier.

Return values

  1. Dcs.DCSWrapper.Object#Object.ID: ObjectID

  2. #nil: The DCS Object is not existing or alive.

OBJECT:New(ObjectName, Test)

Create a new OBJECT from a DCSObject

Parameters

Return value

#OBJECT: self

#string OBJECT.ObjectName

The name of the Object.