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. |
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
- ZONE_DETECTION.New(): Constructor.
Type(s)
Fields and Methods inherited from ZONE_DETECTION | Description |
---|---|
Bounds the zone with tires. |
|
ZONE_DETECTION:FlareZone(FlareColor, Points, Azimuth, AddHeight) |
Flares the zone boundaries in a color. |
Returns the radius around the detected locations defining the combine zone. |
|
Returns if a location is within the zone. |
|
Returns if a point is within the zone. |
|
Constructor of #ZONE_DETECTION, taking the zone name, the zone location and a radius. |
|
The radius of the zone. |
|
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. |
The current location of the zone. |
Field(s)
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:
self
Flares the zone boundaries in a color.
Defined in:
ZONE_DETECTION
Parameters:
Utilities.Utils#FLARECOLOR FlareColor
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:
self
Returns the radius around the detected locations defining the combine zone.
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.
Functional.Detection#DETECTION_BASE Detection
The detection object defining the locations of the central detections.
DCS#Distance Radius
The radius around the detections defining the combined zone.
Return value:
self
Sets the radius around the detected locations defining the combine zone.
Smokes the zone boundaries in a color.
Defined in:
ZONE_DETECTION
Parameters:
Utilities.Utils#SMOKECOLOR SmokeColor
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:
self