Banner Image

Module Utilities.Templates

Utilities - Templates.

DCS unit templates

Global(s)

Global TEMPLATE

Templates


Banner Image

Get DCS templates from thin air.

#TEMPLATE TEMPLATE

Templates


Banner Image

Get DCS templates from thin air.

Ground Units

Ground units.

Naval Units

Ships are not implemented yet.

Aircraft

Airplanes

Airplanes are not implemented yet.

Helicopters

Helicopters are not implemented yet.

Type(s)

Fields and Methods inherited from TEMPLATE.TypeAirplane Description

TEMPLATE.TypeAirplane.A10C

Fields and Methods inherited from TEMPLATE.TypeHelicopter Description

TEMPLATE.TypeHelicopter.AH1W

Fields and Methods inherited from TEMPLATE.TypeNaval Description

TEMPLATE.TypeNaval.Ticonderoga

TEMPLATE class.

Field(s)

#string TEMPLATE.ClassName

Name of the class.

Function(s)

Add a waypoint.

Defined in:

TEMPLATE

Parameters:

#table Template

The template to be modified.

#table Waypoint

Waypoint table.

Get template for fixed wing units.

Defined in:

TEMPLATE

Parameters:

#string TypeName

Type name of the unit(s) in the groups. See TEMPLATE.Ground.

#string GroupName

Name of the spawned group. Must be unique!

#number CountryID

Country ID. Default country.id.USA. Coalition is automatically determined by the one the country belongs to.

DCS#Vec3 Vec3

Position of the group and the first unit.

#number Nunits

Number of units. Default 1.

#number Radius

Spawn radius for additonal units in meters. Default 500 m.

Return value:

#table:

Template Template table.

Get template for ground units.

Defined in:

TEMPLATE

Parameters:

#string TypeName

Type name of the unit(s) in the groups. See TEMPLATE.Ground.

#string GroupName

Name of the spawned group. Must be unique!

#number CountryID

Country ID. Default country.id.USA. Coalition is automatically determined by the one the country belongs to.

DCS#Vec3 Vec3

Position of the group and the first unit.

#number Nunits

Number of units. Default 1.

#number Radius

Spawn radius for additonal units in meters. Default 50 m.

Return value:

#table:

Template Template table.

Get template for fixed wing units.

Defined in:

TEMPLATE

Parameters:

#string TypeName

Type name of the unit(s) in the groups. See TEMPLATE.Ground.

#string GroupName

Name of the spawned group. Must be unique!

#number CountryID

Country ID. Default country.id.USA. Coalition is automatically determined by the one the country belongs to.

DCS#Vec3 Vec3

Position of the group and the first unit.

#number Nunits

Number of units. Default 1.

#number Radius

Spawn radius for additonal units in meters. Default 500 m.

Return value:

#table:

Template Template table.

Get template for ground units.

Defined in:

TEMPLATE

Parameters:

#string TypeName

Type name of the unit(s) in the groups. See TEMPLATE.Ground.

#string GroupName

Name of the spawned group. Must be unique!

#number CountryID

Country ID. Default country.id.USA. Coalition is automatically determined by the one the country belongs to.

DCS#Vec3 Vec3

Position of the group and the first unit.

#number Nunits

Number of units. Default 1.

#number Radius

Spawn radius for additonal units in meters. Default 500 m.

Return value:

#table:

Template Template table.

Set the position of the template.

Defined in:

TEMPLATE

Parameters:

#table Template

The template to be modified.

The airbase where the aircraft are spawned.

#table ParkingSpots

List of parking spot IDs. Every unit needs one!

#boolean EngineOn

If true, aircraft are spawned hot.

Set the position of the template.

Defined in:

TEMPLATE

Parameters:

#table Template

The template to be modified.

DCS#Vec2 Vec2

2D Position vector with x and y components of the group.

Set the position of the template.

Defined in:

TEMPLATE

Parameters:

#table Template

The template to be modified.

DCS#Vec3 Vec3

Position vector of the group.

Set the position of the template.

Defined in:

TEMPLATE

Parameters:

#table Template

The template to be modified.

#number N

Total number of units in the group.

Position of the first unit.

#number Radius

Radius in meters to randomly place the additional units.

Get template for aircraft units.

Defined in:

TEMPLATE

Parameters:

#boolean Airplane

If true, this is a fixed wing. Else, rotary wing.

#string TypeName

Type name of the unit(s) in the groups. See TEMPLATE.Ground.

#string GroupName

Name of the spawned group. Must be unique!

#number CountryID

Country ID. Default country.id.USA. Coalition is automatically determined by the one the country belongs to.

DCS#Vec3 Vec3

Position of the group and the first unit.

#number Nunits

Number of units. Default 1.

#number Radius

Spawn radius for additonal units in meters. Default 500 m.

Return value:

#table:

Template Template table.

Rotary wing unit type names.

Field(s)

Function(s)

Rotary wing unit type names.

Field(s)

Function(s)

Naval unit type names.

Field(s)

Function(s)