Module DCS.DCSGroup

Global(s)

Global Group

Type(s)

Represents group of Units.

Field(s)

#Group.Category Group.Category

Enum contains identifiers of group types.

#ID Group.ID

Identifier of a group. It is assigned to a group by Mission Editor automatically.

Function(s)

Destroys the group and all of its units.

Returns group by the name assigned to the group in Mission Editor.

Parameter:
#string name

Return value:

#Group:

Returns category of the group.

Return value:

#Group.Category:

Returns the coalition of the group.

Returns controller of the group.

Return value:

Controller#Controller:

Returns the group identifier.

Return value:

#ID:

Returns initial size of the group.

If some of the units will be destroyed, initial size of the group will not be changed. Initial size limits the unitNumber parameter for Group.getUnit() function.

Return value:

number:

Returns the group's name.

This is the same name assigned to the group in Mission Editor.

Return value:

string:

Returns current size of the group.

If some of the units will be destroyed, As units are destroyed the size of the group will be changed.

Return value:

number:

Returns the unit with number unitNumber.

If the unit is not exists the function will return nil.

Parameter:
#number unitNumber

Return value:

Dcs.DCSWrapper.Unit#Unit:

Returns array of the units present in the group now.

Destroyed units will not be enlisted at all.

Return value:

list<Dcs.DCSWrapper.Unit#Unit>:

array of Units

returns true if the group exist or false otherwise.

Return value:

boolean:

Enum contains identifiers of group types.

Field(s)

Function(s)