Banner Image

Module Core.Zone_Detection

Core - The ZONE_DETECTION class, defined by a zone name, a detection object and a radius.

Global(s)

Global ZONE_DETECTION

The ZONE_DETECTION class defined by a zone name, a location and a radius.

#ZONE_DETECTION ZONE_DETECTION

The ZONE_DETECTION class defined by a zone name, a location and a radius.

This class implements the inherited functions from Core.Zone#ZONE_BASE taking into account the own zone format and properties.

ZONE_DETECTION constructor

Type(s)

Fields and Methods inherited from ZONE_DETECTION Description

ZONE_DETECTION:BoundZone(Points, CountryID, UnBound)

Bounds the zone with tires.

ZONE_DETECTION.Detection

ZONE_DETECTION:FlareZone(FlareColor, Points, Azimuth, AddHeight)

Flares the zone boundaries in a color.

ZONE_DETECTION:GetRadius()

Returns the radius around the detected locations defining the combine zone.

ZONE_DETECTION:IsVec2InZone(Vec2)

Returns if a location is within the zone.

ZONE_DETECTION:IsVec3InZone(Vec3)

Returns if a point is within the zone.

ZONE_DETECTION:New(ZoneName, Detection, Radius)

Constructor of #ZONE_DETECTION, taking the zone name, the zone location and a radius.

ZONE_DETECTION.Radius

The radius of the zone.

ZONE_DETECTION:SetRadius(Radius)

Sets the radius around the detected locations defining the combine zone.

ZONE_DETECTION:SmokeZone(SmokeColor, Points, AddHeight, AddOffSet, AngleOffset)

Smokes the zone boundaries in a color.

ZONE_DETECTION.Vec2

The current location of the zone.

Field(s)

DCS#Distance ZONE_DETECTION.Radius

The radius of the zone.

DCS#Vec2 ZONE_DETECTION.Vec2

The current location of the zone.

Function(s)

Bounds the zone with tires.

Defined in:

ZONE_DETECTION

Parameters:

#number Points

(optional) The amount of points in the circle. Default 360.

DCS#country.id CountryID

The country id of the tire objects, e.g. country.id.USA for blue or country.id.RUSSIA for red.

#boolean UnBound

(Optional) If true the tyres will be destroyed.

Return value:

Flares the zone boundaries in a color.

Defined in:

ZONE_DETECTION

Parameters:

The flare color.

#number Points

(optional) The amount of points in the circle.

DCS#Azimuth Azimuth

(optional) Azimuth The azimuth of the flare.

#number AddHeight

(optional) The height to be added for the smoke.

Return value:

Returns the radius around the detected locations defining the combine zone.

Defined in:

ZONE_DETECTION

Return value:

The radius.

Returns if a location is within the zone.

Defined in:

ZONE_DETECTION

Parameter:

DCS#Vec2 Vec2

The location to test.

Return value:

#boolean:

true if the location is within the zone.

Returns if a point is within the zone.

Defined in:

ZONE_DETECTION

Parameter:

DCS#Vec3 Vec3

The point to test.

Return value:

#boolean:

true if the point is within the zone.

Constructor of #ZONE_DETECTION, taking the zone name, the zone location and a radius.

Defined in:

ZONE_DETECTION

Parameters:

#string ZoneName

Name of the zone.

The detection object defining the locations of the central detections.

DCS#Distance Radius

The radius around the detections defining the combined zone.

Return value:

Sets the radius around the detected locations defining the combine zone.

Defined in:

ZONE_DETECTION

Parameter:

DCS#Distance Radius

The radius.

Return value:

Smokes the zone boundaries in a color.

Defined in:

ZONE_DETECTION

Parameters:

The smoke color.

#number Points

(optional) The amount of points in the circle.

#number AddHeight

(optional) The height to be added for the smoke.

#number AddOffSet

(optional) The angle to be added for the smoking start position.

AngleOffset

Return value: