diff --git a/Moose Development/Dcs/DCScountry.lua b/Moose Development/Dcs/DCScountry.lua index 5a277d1fb..e390894cd 100644 --- a/Moose Development/Dcs/DCScountry.lua +++ b/Moose Development/Dcs/DCScountry.lua @@ -3,6 +3,7 @@ --- @type country -- @field #country.id id +country = country -- #country --- @type country.id -- @field RUSSIA @@ -23,4 +24,4 @@ -- @field INSURGENTS -- @field ABKHAZIA -- @field SOUTH_OSETIA --- @field ITALY \ No newline at end of file +-- @field ITALY diff --git a/Moose Development/Moose/Database.lua b/Moose Development/Moose/Database.lua index c75bafc30..1dcc70cdb 100644 --- a/Moose Development/Moose/Database.lua +++ b/Moose Development/Moose/Database.lua @@ -380,6 +380,14 @@ function DATABASE:_RegisterTemplate( GroupTemplate, CoalitionID, CategoryID, Cou self:E( TraceTable ) end +function DATABASE:GetGroupTemplate( GroupName ) + local GroupTemplate = self.Templates.Groups[GroupName].Template + GroupTemplate.SpawnCoalitionID = self.Templates.Groups[GroupName].CoalitionID + GroupTemplate.SpawnCategoryID = self.Templates.Groups[GroupName].CategoryID + GroupTemplate.SpawnCountryID = self.Templates.Groups[GroupName].CountryID + return GroupTemplate +end + function DATABASE:GetCoalitionFromClientTemplate( ClientName ) return self.Templates.ClientsByName[ClientName].CoalitionID end diff --git a/Moose Development/Moose/Group.lua b/Moose Development/Moose/Group.lua index 5792cad84..57375b510 100644 --- a/Moose Development/Moose/Group.lua +++ b/Moose Development/Moose/Group.lua @@ -708,14 +708,34 @@ function GROUP:GetMaxHeight() end ---- @param Group#GROUP self +-- SPAWNING + +--- Respawn the @{GROUP} using a (tweaked) template of the Group. +-- The template must be retrieved with the @{Group#GROUP.GetTemplate}() function. +-- The template contains all the definitions as declared within the mission file. +-- To understand templates, do the following: +-- +-- * unpack your .miz file into a directory using 7-zip. +-- * browse in the directory created to the file **mission**. +-- * open the file and search for the country group definitions. +-- +-- Your group template will contain the fields as described within the mission file. +-- +-- This function will: +-- +-- * Get the current position and heading of the group. +-- * When the group is alive, it will tweak the template x, y and heading coordinates of the group and the embedded units to the current units positions. +-- * Then it will destroy the current alive group. +-- * And it will respawn the group using your new template definition. +-- @param Group#GROUP self +-- @param #table Template The template of the Group retrieved with GROUP:GetTemplate() function GROUP:Respawn( Template ) local Vec3 = self:GetPointVec3() - --Template.x = Vec3.x - --Template.y = Vec3.z - Template.x = nil - Template.y = nil + Template.x = Vec3.x + Template.y = Vec3.z + --Template.x = nil + --Template.y = nil self:E( #Template.units ) for UnitID, UnitData in pairs( self:GetUnits() ) do @@ -732,16 +752,49 @@ function GROUP:Respawn( Template ) end end + self:Destroy() _DATABASE:Spawn( Template ) - end +--- Returns the group template from the @{DATABASE} (_DATABASE object). +-- @param #GROUP self +-- @return #table function GROUP:GetTemplate() - - return _DATABASE.Templates.Groups[self:GetName()].Template - + local GroupName = self:GetName() + self:E( GroupName ) + return _DATABASE:GetGroupTemplate( GroupName ) end +--- Sets the controlled status in a Template. +-- @param #GROUP self +-- @param #boolean Controlled true is controlled, false is uncontrolled. +-- @return #table +function GROUP:SetTemplateControlled( Template, Controlled ) + Template.uncontrolled = not Controlled + return Template +end + +--- Sets the CountryID of the group in a Template. +-- @param #GROUP self +-- @param DCScountry#country.id CountryID The country ID. +-- @return #table +function GROUP:SetTemplateCountry( Template, CountryID ) + Template.CountryID = CountryID + return Template +end + +--- Sets the CoalitionID of the group in a Template. +-- @param #GROUP self +-- @param DCSCoalitionObject#coalition.side CoalitionID The coalition ID. +-- @return #table +function GROUP:SetTemplateCoalition( Template, CoalitionID ) + Template.CoalitionID = CoalitionID + return Template +end + + + + --- Return the mission template of the group. -- @param #GROUP self -- @return #table The MissionTemplate diff --git a/Moose Development/Moose/Zone.lua b/Moose Development/Moose/Zone.lua index 199005d9a..893abd5c2 100644 --- a/Moose Development/Moose/Zone.lua +++ b/Moose Development/Moose/Zone.lua @@ -18,8 +18,9 @@ -- * @{Zone#ZONE_BASE}: The ZONE_BASE class defining the base for all other zone classes. -- * @{Zone#ZONE_RADIUS}: The ZONE_RADIUS class defined by a zone name, a location and a radius. -- * @{Zone#ZONE}: The ZONE class, defined by the zone name as defined within the Mission Editor. --- * @{Zone#ZONE_UNIT}: The ZONE_UNIT class defined by a zone around a @{Unit#UNIT} with a radius. --- * @{Zone#ZONE_POLYGON}: The ZONE_POLYGON class defined by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. +-- * @{Zone#ZONE_UNIT}: The ZONE_UNIT class defines by a zone around a @{Unit#UNIT} with a radius. +-- * @{Zone#ZONE_GROUP}: The ZONE_GROUP class defines by a zone around a @{Group#GROUP} with a radius. +-- * @{Zone#ZONE_POLYGON}: The ZONE_POLYGON class defines by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. -- -- Each zone implements two polymorphic functions defined in @{Zone#ZONE_BASE}: -- @@ -52,7 +53,13 @@ -- -- === -- --- 5) @{Zone#ZONE_POLYGON} class, extends @{Zone#ZONE_BASE} +-- 5) @{Zone#ZONE_GROUP} class, extends @{Zone#ZONE_RADIUS} +-- ======================================================= +-- The ZONE_GROUP class defines by a zone around a @{Group#GROUP} with a radius. The current leader of the group defines the center of the zone. +-- +-- === +-- +-- 6) @{Zone#ZONE_POLYGON} class, extends @{Zone#ZONE_BASE} -- ======================================================== -- The ZONE_POLYGON class defined by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. -- @@ -62,13 +69,6 @@ -- @author FlightControl - - - - - - - --- The ZONE_BASE class -- @type ZONE_BASE -- @field #string ZoneName Name of the zone. @@ -422,6 +422,64 @@ function ZONE_UNIT:GetRandomVec2() return Point end + +--- The ZONE_GROUP class defined by a zone around a @{Group}, taking the average center point of all the units within the Group, with a radius. +-- @type ZONE_GROUP +-- @field Group#GROUP ZoneGROUP +-- @extends Zone#ZONE_RADIUS +ZONE_GROUP = { + ClassName="ZONE_GROUP", + } + +--- Constructor to create a ZONE_GROUP instance, taking the zone name, a zone @{Group#GROUP} and a radius. +-- @param #ZONE_GROUP self +-- @param #string ZoneName Name of the zone. +-- @param Group#GROUP ZoneGROUP The @{Group} as the center of the zone. +-- @param DCSTypes#Distance Radius The radius of the zone. +-- @return #ZONE_GROUP self +function ZONE_GROUP:New( ZoneName, ZoneGROUP, Radius ) + local self = BASE:Inherit( self, ZONE_RADIUS:New( ZoneName, ZoneGROUP:GetPointVec2(), Radius ) ) + self:F( { ZoneName, ZoneGROUP:GetPointVec2(), Radius } ) + + self.ZoneGROUP = ZoneGROUP + + return self +end + + +--- Returns the current location of the @{Group}. +-- @param #ZONE_GROUP self +-- @return DCSTypes#Vec2 The location of the zone based on the @{Group} location. +function ZONE_GROUP:GetPointVec2() + self:F( self.ZoneName ) + + local ZonePointVec2 = self.ZoneGROUP:GetPointVec2() + + self:T( { ZonePointVec2 } ) + + return ZonePointVec2 +end + +--- Returns a random location within the zone of the @{Group}. +-- @param #ZONE_GROUP self +-- @return DCSTypes#Vec2 The random location of the zone based on the @{Group} location. +function ZONE_GROUP:GetRandomVec2() + self:F( self.ZoneName ) + + local Point = {} + local PointVec2 = self.ZoneGROUP:GetPointVec2() + + local angle = math.random() * math.pi*2; + Point.x = PointVec2.x + math.cos( angle ) * math.random() * self:GetRadius(); + Point.y = PointVec2.y + math.sin( angle ) * math.random() * self:GetRadius(); + + self:T( { Point } ) + + return Point +end + + + -- Polygons --- The ZONE_POLYGON_BASE class defined by an array of @{DCSTypes#Vec2}, forming a polygon. diff --git a/Moose Mission Setup/Moose Mission Update/l10n/DEFAULT/Moose.lua b/Moose Mission Setup/Moose Mission Update/l10n/DEFAULT/Moose.lua index 286691208..5f7ca69d2 100644 --- a/Moose Mission Setup/Moose Mission Update/l10n/DEFAULT/Moose.lua +++ b/Moose Mission Setup/Moose Mission Update/l10n/DEFAULT/Moose.lua @@ -1,5 +1,5 @@ env.info( '*** MOOSE STATIC INCLUDE START *** ' ) -env.info( 'Moose Generation Timestamp: 20160704_1648' ) +env.info( 'Moose Generation Timestamp: 20160705_0828' ) local base = _G Include = {} @@ -7580,14 +7580,34 @@ function GROUP:GetMaxHeight() end ---- @param Group#GROUP self +-- SPAWNING + +--- Respawn the @{GROUP} using a (tweaked) template of the Group. +-- The template must be retrieved with the @{Group#GROUP.GetTemplate}() function. +-- The template contains all the definitions as declared within the mission file. +-- To understand templates, do the following: +-- +-- * unpack your .miz file into a directory using 7-zip. +-- * browse in the directory created to the file **mission**. +-- * open the file and search for the country group definitions. +-- +-- Your group template will contain the fields as described within the mission file. +-- +-- This function will: +-- +-- * Get the current position and heading of the group. +-- * When the group is alive, it will tweak the template x, y and heading coordinates of the group and the embedded units to the current units positions. +-- * Then it will destroy the current alive group. +-- * And it will respawn the group using your new template definition. +-- @param Group#GROUP self +-- @param #table Template The template of the Group retrieved with GROUP:GetTemplate() function GROUP:Respawn( Template ) local Vec3 = self:GetPointVec3() - --Template.x = Vec3.x - --Template.y = Vec3.z - Template.x = nil - Template.y = nil + Template.x = Vec3.x + Template.y = Vec3.z + --Template.x = nil + --Template.y = nil self:E( #Template.units ) for UnitID, UnitData in pairs( self:GetUnits() ) do @@ -7604,16 +7624,49 @@ function GROUP:Respawn( Template ) end end + self:Destroy() _DATABASE:Spawn( Template ) - end +--- Returns the group template from the @{DATABASE} (_DATABASE object). +-- @param #GROUP self +-- @return #table function GROUP:GetTemplate() - - return _DATABASE.Templates.Groups[self:GetName()].Template - + local GroupName = self:GetName() + self:E( GroupName ) + return _DATABASE:GetGroupTemplate( GroupName ) end +--- Sets the controlled status in a Template. +-- @param #GROUP self +-- @param #boolean Controlled true is controlled, false is uncontrolled. +-- @return #table +function GROUP:SetTemplateControlled( Template, Controlled ) + Template.uncontrolled = not Controlled + return Template +end + +--- Sets the CountryID of the group in a Template. +-- @param #GROUP self +-- @param DCScountry#country.id CountryID The country ID. +-- @return #table +function GROUP:SetTemplateCountry( Template, CountryID ) + Template.CountryID = CountryID + return Template +end + +--- Sets the CoalitionID of the group in a Template. +-- @param #GROUP self +-- @param DCSCoalitionObject#coalition.side CoalitionID The coalition ID. +-- @return #table +function GROUP:SetTemplateCoalition( Template, CoalitionID ) + Template.CoalitionID = CoalitionID + return Template +end + + + + --- Return the mission template of the group. -- @param #GROUP self -- @return #table The MissionTemplate @@ -8340,8 +8393,9 @@ end -- * @{Zone#ZONE_BASE}: The ZONE_BASE class defining the base for all other zone classes. -- * @{Zone#ZONE_RADIUS}: The ZONE_RADIUS class defined by a zone name, a location and a radius. -- * @{Zone#ZONE}: The ZONE class, defined by the zone name as defined within the Mission Editor. --- * @{Zone#ZONE_UNIT}: The ZONE_UNIT class defined by a zone around a @{Unit#UNIT} with a radius. --- * @{Zone#ZONE_POLYGON}: The ZONE_POLYGON class defined by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. +-- * @{Zone#ZONE_UNIT}: The ZONE_UNIT class defines by a zone around a @{Unit#UNIT} with a radius. +-- * @{Zone#ZONE_GROUP}: The ZONE_GROUP class defines by a zone around a @{Group#GROUP} with a radius. +-- * @{Zone#ZONE_POLYGON}: The ZONE_POLYGON class defines by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. -- -- Each zone implements two polymorphic functions defined in @{Zone#ZONE_BASE}: -- @@ -8374,7 +8428,13 @@ end -- -- === -- --- 5) @{Zone#ZONE_POLYGON} class, extends @{Zone#ZONE_BASE} +-- 5) @{Zone#ZONE_GROUP} class, extends @{Zone#ZONE_RADIUS} +-- ======================================================= +-- The ZONE_GROUP class defines by a zone around a @{Group#GROUP} with a radius. The current leader of the group defines the center of the zone. +-- +-- === +-- +-- 6) @{Zone#ZONE_POLYGON} class, extends @{Zone#ZONE_BASE} -- ======================================================== -- The ZONE_POLYGON class defined by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. -- @@ -8384,13 +8444,6 @@ end -- @author FlightControl - - - - - - - --- The ZONE_BASE class -- @type ZONE_BASE -- @field #string ZoneName Name of the zone. @@ -8744,6 +8797,64 @@ function ZONE_UNIT:GetRandomVec2() return Point end + +--- The ZONE_GROUP class defined by a zone around a @{Group}, taking the average center point of all the units within the Group, with a radius. +-- @type ZONE_GROUP +-- @field Group#GROUP ZoneGROUP +-- @extends Zone#ZONE_RADIUS +ZONE_GROUP = { + ClassName="ZONE_GROUP", + } + +--- Constructor to create a ZONE_GROUP instance, taking the zone name, a zone @{Group#GROUP} and a radius. +-- @param #ZONE_GROUP self +-- @param #string ZoneName Name of the zone. +-- @param Group#GROUP ZoneGROUP The @{Group} as the center of the zone. +-- @param DCSTypes#Distance Radius The radius of the zone. +-- @return #ZONE_GROUP self +function ZONE_GROUP:New( ZoneName, ZoneGROUP, Radius ) + local self = BASE:Inherit( self, ZONE_RADIUS:New( ZoneName, ZoneGROUP:GetPointVec2(), Radius ) ) + self:F( { ZoneName, ZoneGROUP:GetPointVec2(), Radius } ) + + self.ZoneGROUP = ZoneGROUP + + return self +end + + +--- Returns the current location of the @{Group}. +-- @param #ZONE_GROUP self +-- @return DCSTypes#Vec2 The location of the zone based on the @{Group} location. +function ZONE_GROUP:GetPointVec2() + self:F( self.ZoneName ) + + local ZonePointVec2 = self.ZoneGROUP:GetPointVec2() + + self:T( { ZonePointVec2 } ) + + return ZonePointVec2 +end + +--- Returns a random location within the zone of the @{Group}. +-- @param #ZONE_GROUP self +-- @return DCSTypes#Vec2 The random location of the zone based on the @{Group} location. +function ZONE_GROUP:GetRandomVec2() + self:F( self.ZoneName ) + + local Point = {} + local PointVec2 = self.ZoneGROUP:GetPointVec2() + + local angle = math.random() * math.pi*2; + Point.x = PointVec2.x + math.cos( angle ) * math.random() * self:GetRadius(); + Point.y = PointVec2.y + math.sin( angle ) * math.random() * self:GetRadius(); + + self:T( { Point } ) + + return Point +end + + + -- Polygons --- The ZONE_POLYGON_BASE class defined by an array of @{DCSTypes#Vec2}, forming a polygon. @@ -9982,6 +10093,14 @@ function DATABASE:_RegisterTemplate( GroupTemplate, CoalitionID, CategoryID, Cou self:E( TraceTable ) end +function DATABASE:GetGroupTemplate( GroupName ) + local GroupTemplate = self.Templates.Groups[GroupName].Template + GroupTemplate.SpawnCoalitionID = self.Templates.Groups[GroupName].CoalitionID + GroupTemplate.SpawnCategoryID = self.Templates.Groups[GroupName].CategoryID + GroupTemplate.SpawnCountryID = self.Templates.Groups[GroupName].CountryID + return GroupTemplate +end + function DATABASE:GetCoalitionFromClientTemplate( ClientName ) return self.Templates.ClientsByName[ClientName].CoalitionID end diff --git a/Moose Mission Setup/Moose.lua b/Moose Mission Setup/Moose.lua index 286691208..5f7ca69d2 100644 --- a/Moose Mission Setup/Moose.lua +++ b/Moose Mission Setup/Moose.lua @@ -1,5 +1,5 @@ env.info( '*** MOOSE STATIC INCLUDE START *** ' ) -env.info( 'Moose Generation Timestamp: 20160704_1648' ) +env.info( 'Moose Generation Timestamp: 20160705_0828' ) local base = _G Include = {} @@ -7580,14 +7580,34 @@ function GROUP:GetMaxHeight() end ---- @param Group#GROUP self +-- SPAWNING + +--- Respawn the @{GROUP} using a (tweaked) template of the Group. +-- The template must be retrieved with the @{Group#GROUP.GetTemplate}() function. +-- The template contains all the definitions as declared within the mission file. +-- To understand templates, do the following: +-- +-- * unpack your .miz file into a directory using 7-zip. +-- * browse in the directory created to the file **mission**. +-- * open the file and search for the country group definitions. +-- +-- Your group template will contain the fields as described within the mission file. +-- +-- This function will: +-- +-- * Get the current position and heading of the group. +-- * When the group is alive, it will tweak the template x, y and heading coordinates of the group and the embedded units to the current units positions. +-- * Then it will destroy the current alive group. +-- * And it will respawn the group using your new template definition. +-- @param Group#GROUP self +-- @param #table Template The template of the Group retrieved with GROUP:GetTemplate() function GROUP:Respawn( Template ) local Vec3 = self:GetPointVec3() - --Template.x = Vec3.x - --Template.y = Vec3.z - Template.x = nil - Template.y = nil + Template.x = Vec3.x + Template.y = Vec3.z + --Template.x = nil + --Template.y = nil self:E( #Template.units ) for UnitID, UnitData in pairs( self:GetUnits() ) do @@ -7604,16 +7624,49 @@ function GROUP:Respawn( Template ) end end + self:Destroy() _DATABASE:Spawn( Template ) - end +--- Returns the group template from the @{DATABASE} (_DATABASE object). +-- @param #GROUP self +-- @return #table function GROUP:GetTemplate() - - return _DATABASE.Templates.Groups[self:GetName()].Template - + local GroupName = self:GetName() + self:E( GroupName ) + return _DATABASE:GetGroupTemplate( GroupName ) end +--- Sets the controlled status in a Template. +-- @param #GROUP self +-- @param #boolean Controlled true is controlled, false is uncontrolled. +-- @return #table +function GROUP:SetTemplateControlled( Template, Controlled ) + Template.uncontrolled = not Controlled + return Template +end + +--- Sets the CountryID of the group in a Template. +-- @param #GROUP self +-- @param DCScountry#country.id CountryID The country ID. +-- @return #table +function GROUP:SetTemplateCountry( Template, CountryID ) + Template.CountryID = CountryID + return Template +end + +--- Sets the CoalitionID of the group in a Template. +-- @param #GROUP self +-- @param DCSCoalitionObject#coalition.side CoalitionID The coalition ID. +-- @return #table +function GROUP:SetTemplateCoalition( Template, CoalitionID ) + Template.CoalitionID = CoalitionID + return Template +end + + + + --- Return the mission template of the group. -- @param #GROUP self -- @return #table The MissionTemplate @@ -8340,8 +8393,9 @@ end -- * @{Zone#ZONE_BASE}: The ZONE_BASE class defining the base for all other zone classes. -- * @{Zone#ZONE_RADIUS}: The ZONE_RADIUS class defined by a zone name, a location and a radius. -- * @{Zone#ZONE}: The ZONE class, defined by the zone name as defined within the Mission Editor. --- * @{Zone#ZONE_UNIT}: The ZONE_UNIT class defined by a zone around a @{Unit#UNIT} with a radius. --- * @{Zone#ZONE_POLYGON}: The ZONE_POLYGON class defined by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. +-- * @{Zone#ZONE_UNIT}: The ZONE_UNIT class defines by a zone around a @{Unit#UNIT} with a radius. +-- * @{Zone#ZONE_GROUP}: The ZONE_GROUP class defines by a zone around a @{Group#GROUP} with a radius. +-- * @{Zone#ZONE_POLYGON}: The ZONE_POLYGON class defines by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. -- -- Each zone implements two polymorphic functions defined in @{Zone#ZONE_BASE}: -- @@ -8374,7 +8428,13 @@ end -- -- === -- --- 5) @{Zone#ZONE_POLYGON} class, extends @{Zone#ZONE_BASE} +-- 5) @{Zone#ZONE_GROUP} class, extends @{Zone#ZONE_RADIUS} +-- ======================================================= +-- The ZONE_GROUP class defines by a zone around a @{Group#GROUP} with a radius. The current leader of the group defines the center of the zone. +-- +-- === +-- +-- 6) @{Zone#ZONE_POLYGON} class, extends @{Zone#ZONE_BASE} -- ======================================================== -- The ZONE_POLYGON class defined by a sequence of @{Group#GROUP} waypoints within the Mission Editor, forming a polygon. -- @@ -8384,13 +8444,6 @@ end -- @author FlightControl - - - - - - - --- The ZONE_BASE class -- @type ZONE_BASE -- @field #string ZoneName Name of the zone. @@ -8744,6 +8797,64 @@ function ZONE_UNIT:GetRandomVec2() return Point end + +--- The ZONE_GROUP class defined by a zone around a @{Group}, taking the average center point of all the units within the Group, with a radius. +-- @type ZONE_GROUP +-- @field Group#GROUP ZoneGROUP +-- @extends Zone#ZONE_RADIUS +ZONE_GROUP = { + ClassName="ZONE_GROUP", + } + +--- Constructor to create a ZONE_GROUP instance, taking the zone name, a zone @{Group#GROUP} and a radius. +-- @param #ZONE_GROUP self +-- @param #string ZoneName Name of the zone. +-- @param Group#GROUP ZoneGROUP The @{Group} as the center of the zone. +-- @param DCSTypes#Distance Radius The radius of the zone. +-- @return #ZONE_GROUP self +function ZONE_GROUP:New( ZoneName, ZoneGROUP, Radius ) + local self = BASE:Inherit( self, ZONE_RADIUS:New( ZoneName, ZoneGROUP:GetPointVec2(), Radius ) ) + self:F( { ZoneName, ZoneGROUP:GetPointVec2(), Radius } ) + + self.ZoneGROUP = ZoneGROUP + + return self +end + + +--- Returns the current location of the @{Group}. +-- @param #ZONE_GROUP self +-- @return DCSTypes#Vec2 The location of the zone based on the @{Group} location. +function ZONE_GROUP:GetPointVec2() + self:F( self.ZoneName ) + + local ZonePointVec2 = self.ZoneGROUP:GetPointVec2() + + self:T( { ZonePointVec2 } ) + + return ZonePointVec2 +end + +--- Returns a random location within the zone of the @{Group}. +-- @param #ZONE_GROUP self +-- @return DCSTypes#Vec2 The random location of the zone based on the @{Group} location. +function ZONE_GROUP:GetRandomVec2() + self:F( self.ZoneName ) + + local Point = {} + local PointVec2 = self.ZoneGROUP:GetPointVec2() + + local angle = math.random() * math.pi*2; + Point.x = PointVec2.x + math.cos( angle ) * math.random() * self:GetRadius(); + Point.y = PointVec2.y + math.sin( angle ) * math.random() * self:GetRadius(); + + self:T( { Point } ) + + return Point +end + + + -- Polygons --- The ZONE_POLYGON_BASE class defined by an array of @{DCSTypes#Vec2}, forming a polygon. @@ -9982,6 +10093,14 @@ function DATABASE:_RegisterTemplate( GroupTemplate, CoalitionID, CategoryID, Cou self:E( TraceTable ) end +function DATABASE:GetGroupTemplate( GroupName ) + local GroupTemplate = self.Templates.Groups[GroupName].Template + GroupTemplate.SpawnCoalitionID = self.Templates.Groups[GroupName].CoalitionID + GroupTemplate.SpawnCategoryID = self.Templates.Groups[GroupName].CategoryID + GroupTemplate.SpawnCountryID = self.Templates.Groups[GroupName].CountryID + return GroupTemplate +end + function DATABASE:GetCoalitionFromClientTemplate( ClientName ) return self.Templates.ClientsByName[ClientName].CoalitionID end diff --git a/Moose Training/Documentation/AIBalancer.html b/Moose Training/Documentation/AIBalancer.html index c07c2ae71..c113e2ea1 100644 --- a/Moose Training/Documentation/AIBalancer.html +++ b/Moose Training/Documentation/AIBalancer.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Airbase.html b/Moose Training/Documentation/Airbase.html index 8e13e9b7f..b3024951a 100644 --- a/Moose Training/Documentation/Airbase.html +++ b/Moose Training/Documentation/Airbase.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -161,75 +162,9 @@ is implemented in the AIRBASE class as AIRBASE.Get - AIRBASE:GetCallSign() - -

    Returns the Airbase's callsign - the localized string.

    - - - - AIRBASE:GetCategory() - -

    Returns the DCS Airbase category as defined within the DCS Airbase Descriptor.

    - - - - AIRBASE:GetCategoryName() - -

    Returns the DCS Airbase category name as defined within the DCS Airbase Descriptor.

    - - - - AIRBASE:GetCoalition() - -

    Returns coalition of the Airbase.

    - - - - AIRBASE:GetCountry() - -

    Returns country of the Airbase.

    - - - - AIRBASE:GetDCSAirbase() + AIRBASE:GetDCSObject() - - - - AIRBASE:GetDesc() - -

    Returns unit descriptor.

    - - - - AIRBASE:GetID() - -

    Returns the unit's unique identifier.

    - - - - AIRBASE:GetName() - -

    Returns DCS Airbase object name.

    - - - - AIRBASE:GetPointVec2() - -

    Returns the DCSTypes#Vec2 vector indicating the point in 2D of the DCS Airbase within the mission.

    - - - - AIRBASE:GetTypeName() - -

    Returns the type name of the DCS Airbase.

    - - - - AIRBASE:IsAlive() - -

    Returns if the airbase is alive.

    @@ -347,308 +282,14 @@ self

    - -AIRBASE:GetCallSign() - -
    -
    - -

    Returns the Airbase's callsign - the localized string.

    - -

    Return values

    -
      -
    1. - -

      #string: -The Callsign of the Airbase.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetCategory() - -
    -
    - -

    Returns the DCS Airbase category as defined within the DCS Airbase Descriptor.

    - -

    Return value

    - -

    DCSAirbase#Airbase.Category: -The DCS Airbase Category

    - -
    -
    -
    -
    - - -AIRBASE:GetCategoryName() - -
    -
    - -

    Returns the DCS Airbase category name as defined within the DCS Airbase Descriptor.

    - -

    Return value

    - -

    #string: -The DCS Airbase Category Name

    - -
    -
    -
    -
    - - -AIRBASE:GetCoalition() - -
    -
    - -

    Returns coalition of the Airbase.

    - -

    Return values

    -
      -
    1. - -

      DCSCoalitionObject#coalition.side: -The side of the coalition.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetCountry() - -
    -
    - -

    Returns country of the Airbase.

    - -

    Return values

    -
      -
    1. - -

      DCScountry#country.id: -The country identifier.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetDCSAirbase() + +AIRBASE:GetDCSObject()
    -
    -
    -
    -
    - - -AIRBASE:GetDesc() - -
    -
    - -

    Returns unit descriptor.

    - - -

    Descriptor type depends on unit category.

    - -

    Return values

    -
      -
    1. - -

      DCSAirbase#Airbase.Desc: -The Airbase descriptor.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetID() - -
    -
    - -

    Returns the unit's unique identifier.

    - -

    Return values

    -
      -
    1. - -

      DCSAirbase#Airbase.ID: -Airbase ID

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetName() - -
    -
    - -

    Returns DCS Airbase object name.

    - - -

    The function provides access to non-activated units too.

    - -

    Return values

    -
      -
    1. - -

      #string: -The name of the DCS Airbase.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetPointVec2() - -
    -
    - -

    Returns the DCSTypes#Vec2 vector indicating the point in 2D of the DCS Airbase within the mission.

    - -

    Return values

    -
      -
    1. - -

      DCSTypes#Vec2: -The 2D point vector of the DCS Airbase.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:GetTypeName() - -
    -
    - -

    Returns the type name of the DCS Airbase.

    - -

    Return values

    -
      -
    1. - -

      #string: -The type name of the DCS Airbase.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    -
    -
    -
    -
    - - -AIRBASE:IsAlive() - -
    -
    - -

    Returns if the airbase is alive.

    - -

    Return values

    -
      -
    1. - -

      #boolean: -true if Airbase is alive.

      - -
    2. -
    3. - -

      #nil: -The DCS Airbase is not existing or alive.

      - -
    4. -
    diff --git a/Moose Training/Documentation/AirbasePolice.html b/Moose Training/Documentation/AirbasePolice.html index a6886630e..0e3559636 100644 --- a/Moose Training/Documentation/AirbasePolice.html +++ b/Moose Training/Documentation/AirbasePolice.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Base.html b/Moose Training/Documentation/Base.html index c2e1b8b10..dac7fe836 100644 --- a/Moose Training/Documentation/Base.html +++ b/Moose Training/Documentation/Base.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/CARGO.html b/Moose Training/Documentation/CARGO.html index 7692b518d..e6dfcbac7 100644 --- a/Moose Training/Documentation/CARGO.html +++ b/Moose Training/Documentation/CARGO.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/CleanUp.html b/Moose Training/Documentation/CleanUp.html index 1c06a75c8..f2a0ee524 100644 --- a/Moose Training/Documentation/CleanUp.html +++ b/Moose Training/Documentation/CleanUp.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Client.html b/Moose Training/Documentation/Client.html index ff68ca961..b0ae7e2f7 100644 --- a/Moose Training/Documentation/Client.html +++ b/Moose Training/Documentation/Client.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Controllable.html b/Moose Training/Documentation/Controllable.html index e20a7afc2..b9d5670fc 100644 --- a/Moose Training/Documentation/Controllable.html +++ b/Moose Training/Documentation/Controllable.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSAirbase.html b/Moose Training/Documentation/DCSAirbase.html index 95f8a4d56..3ab6e9239 100644 --- a/Moose Training/Documentation/DCSAirbase.html +++ b/Moose Training/Documentation/DCSAirbase.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSCoalitionObject.html b/Moose Training/Documentation/DCSCoalitionObject.html index cd3c4c130..bbb8eeed4 100644 --- a/Moose Training/Documentation/DCSCoalitionObject.html +++ b/Moose Training/Documentation/DCSCoalitionObject.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSCommand.html b/Moose Training/Documentation/DCSCommand.html index d616e7387..108b550fc 100644 --- a/Moose Training/Documentation/DCSCommand.html +++ b/Moose Training/Documentation/DCSCommand.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSController.html b/Moose Training/Documentation/DCSController.html index bac941099..9219c37a8 100644 --- a/Moose Training/Documentation/DCSController.html +++ b/Moose Training/Documentation/DCSController.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSGroup.html b/Moose Training/Documentation/DCSGroup.html index 15554be3e..cc29cda20 100644 --- a/Moose Training/Documentation/DCSGroup.html +++ b/Moose Training/Documentation/DCSGroup.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSObject.html b/Moose Training/Documentation/DCSObject.html index 107d3da24..59f399e2c 100644 --- a/Moose Training/Documentation/DCSObject.html +++ b/Moose Training/Documentation/DCSObject.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSTask.html b/Moose Training/Documentation/DCSTask.html index e81f6d966..f4086e3a2 100644 --- a/Moose Training/Documentation/DCSTask.html +++ b/Moose Training/Documentation/DCSTask.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSTypes.html b/Moose Training/Documentation/DCSTypes.html index 72cac5e5a..56df2800d 100644 --- a/Moose Training/Documentation/DCSTypes.html +++ b/Moose Training/Documentation/DCSTypes.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSUnit.html b/Moose Training/Documentation/DCSUnit.html index 5f8ffa99d..534168c91 100644 --- a/Moose Training/Documentation/DCSUnit.html +++ b/Moose Training/Documentation/DCSUnit.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCSWorld.html b/Moose Training/Documentation/DCSWorld.html index c94692c22..d642f2cdd 100644 --- a/Moose Training/Documentation/DCSWorld.html +++ b/Moose Training/Documentation/DCSWorld.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DCScountry.html b/Moose Training/Documentation/DCScountry.html new file mode 100644 index 000000000..d0158de9d --- /dev/null +++ b/Moose Training/Documentation/DCScountry.html @@ -0,0 +1,511 @@ + + + + + + +
    +
    + +
    +
    +
    +
    + +
    +

    Module DCScountry

    + + + +

    Global(s)

    + + + + + +
    country + +
    +

    Type country

    + + + + + +
    country.id + +
    + +

    Type country.id

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    country.id.ABKHAZIA + +
    country.id.BELGIUM + +
    country.id.CANADA + +
    country.id.DENMARK + +
    country.id.FRANCE + +
    country.id.GEORGIA + +
    country.id.GERMANY + +
    country.id.INSURGENTS + +
    country.id.ISRAEL + +
    country.id.ITALY + +
    country.id.NORWAY + +
    country.id.RUSSIA + +
    country.id.SOUTH_OSETIA + +
    country.id.SPAIN + +
    country.id.THE_NETHERLANDS + +
    country.id.TURKEY + +
    country.id.UK + +
    country.id.UKRAINE + +
    country.id.USA + +
    + +

    Global(s)

    +
    +
    + + #country + +country + +
    +
    + + + +
    +
    +

    Type DCScountry

    + +

    Type country

    +

    Field(s)

    +
    +
    + + #country.id + +country.id + +
    +
    + + + +
    +
    + +

    Type country.id

    +

    Field(s)

    +
    +
    + + +country.id.ABKHAZIA + +
    +
    + + + +
    +
    +
    +
    + + +country.id.BELGIUM + +
    +
    + + + +
    +
    +
    +
    + + +country.id.CANADA + +
    +
    + + + +
    +
    +
    +
    + + +country.id.DENMARK + +
    +
    + + + +
    +
    +
    +
    + + +country.id.FRANCE + +
    +
    + + + +
    +
    +
    +
    + + +country.id.GEORGIA + +
    +
    + + + +
    +
    +
    +
    + + +country.id.GERMANY + +
    +
    + + + +
    +
    +
    +
    + + +country.id.INSURGENTS + +
    +
    + + + +
    +
    +
    +
    + + +country.id.ISRAEL + +
    +
    + + + +
    +
    +
    +
    + + +country.id.ITALY + +
    +
    + + + +
    +
    +
    +
    + + +country.id.NORWAY + +
    +
    + + + +
    +
    +
    +
    + + +country.id.RUSSIA + +
    +
    + + + +
    +
    +
    +
    + + +country.id.SOUTH_OSETIA + +
    +
    + + + +
    +
    +
    +
    + + +country.id.SPAIN + +
    +
    + + + +
    +
    +
    +
    + + +country.id.THE_NETHERLANDS + +
    +
    + + + +
    +
    +
    +
    + + +country.id.TURKEY + +
    +
    + + + +
    +
    +
    +
    + + +country.id.UK + +
    +
    + + + +
    +
    +
    +
    + + +country.id.UKRAINE + +
    +
    + + + +
    +
    +
    +
    + + +country.id.USA + +
    +
    + + + +
    +
    + +
    + +
    + + diff --git a/Moose Training/Documentation/DCStimer.html b/Moose Training/Documentation/DCStimer.html index 358daac8c..5e4411da7 100644 --- a/Moose Training/Documentation/DCStimer.html +++ b/Moose Training/Documentation/DCStimer.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DEPLOYTASK.html b/Moose Training/Documentation/DEPLOYTASK.html index 8c4e068e7..3e4c7063a 100644 --- a/Moose Training/Documentation/DEPLOYTASK.html +++ b/Moose Training/Documentation/DEPLOYTASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DESTROYBASETASK.html b/Moose Training/Documentation/DESTROYBASETASK.html index 7a0b8e71b..338c74090 100644 --- a/Moose Training/Documentation/DESTROYBASETASK.html +++ b/Moose Training/Documentation/DESTROYBASETASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DESTROYGROUPSTASK.html b/Moose Training/Documentation/DESTROYGROUPSTASK.html index 48914234e..7ba5e251d 100644 --- a/Moose Training/Documentation/DESTROYGROUPSTASK.html +++ b/Moose Training/Documentation/DESTROYGROUPSTASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DESTROYRADARSTASK.html b/Moose Training/Documentation/DESTROYRADARSTASK.html index 2b10ad2b6..2fe56f95a 100644 --- a/Moose Training/Documentation/DESTROYRADARSTASK.html +++ b/Moose Training/Documentation/DESTROYRADARSTASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/DESTROYUNITTYPESTASK.html b/Moose Training/Documentation/DESTROYUNITTYPESTASK.html index 29689bddf..38f2d846c 100644 --- a/Moose Training/Documentation/DESTROYUNITTYPESTASK.html +++ b/Moose Training/Documentation/DESTROYUNITTYPESTASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Database.html b/Moose Training/Documentation/Database.html index 82f50194d..b6f53e90c 100644 --- a/Moose Training/Documentation/Database.html +++ b/Moose Training/Documentation/Database.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -309,6 +310,12 @@ The following iterator methods are currently available within the DATABASE:

    DATABASE:GetCountryFromClientTemplate(ClientName) + + + + DATABASE:GetGroupTemplate(GroupName) + + @@ -1177,6 +1184,27 @@ self

    + +DATABASE:GetGroupTemplate(GroupName) + +
    +
    + + + +

    Parameter

    +
      +
    • + +

      GroupName :

      + +
    • +
    +
    +
    +
    +
    + DATABASE:GetStatusGroup(GroupName) diff --git a/Moose Training/Documentation/Detection.html b/Moose Training/Documentation/Detection.html index d6df23ad5..88aef1870 100644 --- a/Moose Training/Documentation/Detection.html +++ b/Moose Training/Documentation/Detection.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -89,7 +90,7 @@

    The Detection#DETECTION_BASE class defines the core functions to administer detected objects.

    1.1) DETECTION_BASE constructor

    -

    Construct a new DETECTION_BASE instance using the Detection#DETECTION.New() method.

    +

    Construct a new DETECTION_BASE instance using the Detection#DETECTION_BASE.New() method.

    1.2) DETECTION_BASE initialization

    By default, detection will return detected objects with all the detection sensors available. @@ -357,6 +358,12 @@ DETECTION_UNITGROUPS.DetectedZones

    A list of Zone#ZONE_UNITs containing the zones of the reference detected units.

    + + + + DETECTION_UNITGROUPS:FlareDetectedUnits() + +

    Flare the detected units

    @@ -1093,6 +1100,24 @@ self

    + +DETECTION_UNITGROUPS:FlareDetectedUnits() + +
    +
    + +

    Flare the detected units

    + +

    Return value

    + +

    #DETECTION_UNITGROUPS: +self

    + +
    +
    +
    +
    + DETECTION_UNITGROUPS:FlareDetectedZones() diff --git a/Moose Training/Documentation/Escort.html b/Moose Training/Documentation/Escort.html index 5482b333c..1c20a6ad6 100644 --- a/Moose Training/Documentation/Escort.html +++ b/Moose Training/Documentation/Escort.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -1930,9 +1931,6 @@ EscortPlanes = ESCORT:New( EscortClient, EscortGroup, "Desert", "Welcome to the - -

    self.ReportTargetsScheduler = routines.scheduleFunction( self._ReportTargetsScheduler, { self }, timer.getTime() + 1, Seconds )

    -
    diff --git a/Moose Training/Documentation/Event.html b/Moose Training/Documentation/Event.html index 79cbbd78e..294e68dfd 100644 --- a/Moose Training/Documentation/Event.html +++ b/Moose Training/Documentation/Event.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -1540,7 +1541,7 @@ The self instance of the class for which the event is.

    diff --git a/Moose Training/Documentation/Fac.html b/Moose Training/Documentation/Fac.html index f0b494aff..9fbb3c811 100644 --- a/Moose Training/Documentation/Fac.html +++ b/Moose Training/Documentation/Fac.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/GOHOMETASK.html b/Moose Training/Documentation/GOHOMETASK.html index 9b5ed8c77..ab5a3150a 100644 --- a/Moose Training/Documentation/GOHOMETASK.html +++ b/Moose Training/Documentation/GOHOMETASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Group.html b/Moose Training/Documentation/Group.html index bb7cae5c9..87657f6cc 100644 --- a/Moose Training/Documentation/Group.html +++ b/Moose Training/Documentation/Group.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -406,7 +407,7 @@ Use the following Zone validation methods on the group:

    GROUP:GetTemplate() - +

    Returns the group template from the DATABASE (_DATABASE object).

    @@ -526,7 +527,25 @@ Use the following Zone validation methods on the group:

    GROUP:Respawn(Template) - +

    Respawn the GROUP using a (tweaked) template of the Group.

    + + + + GROUP:SetTemplateCoalition(CoalitionID, Template) + +

    Sets the CoalitionID of the group in a Template.

    + + + + GROUP:SetTemplateControlled(Controlled, Template) + +

    Sets the controlled status in a Template.

    + + + + GROUP:SetTemplateCountry(CountryID, Template) + +

    Sets the CountryID of the group in a Template.

    @@ -1066,6 +1085,11 @@ The mission route defined by points.

    +

    Returns the group template from the DATABASE (_DATABASE object).

    + +

    Return value

    + +

    #table:

    @@ -1544,16 +1568,135 @@ self

    +

    Respawn the GROUP using a (tweaked) template of the Group.

    + +

    The template must be retrieved with the Group#GROUP.GetTemplate() function. +The template contains all the definitions as declared within the mission file. +To understand templates, do the following:

    + +
      +
    • unpack your .miz file into a directory using 7-zip.
    • +
    • browse in the directory created to the file mission.
    • +
    • open the file and search for the country group definitions.
    • +
    + +

    Your group template will contain the fields as described within the mission file.

    + +

    This function will:

    + +
      +
    • Get the current position and heading of the group.
    • +
    • When the group is alive, it will tweak the template x, y and heading coordinates of the group and the embedded units to the current units positions.
    • +
    • Then it will destroy the current alive group.
    • +
    • And it will respawn the group using your new template definition.
    • +

    Parameter

    • +

      #table Template : +The template of the Group retrieved with GROUP:GetTemplate()

      + +
    • +
    +
    +
    +
    +
    + + +GROUP:SetTemplateCoalition(CoalitionID, Template) + +
    +
    + +

    Sets the CoalitionID of the group in a Template.

    + +

    Parameters

    + +

    Return value

    + +

    #table:

    + + +
    +
    +
    +
    + + +GROUP:SetTemplateControlled(Controlled, Template) + +
    +
    + +

    Sets the controlled status in a Template.

    + +

    Parameters

    +
      +
    • + +

      #boolean Controlled : +true is controlled, false is uncontrolled.

      + +
    • +
    • + +

      Template :

      + +
    • +
    +

    Return value

    + +

    #table:

    + + +
    +
    +
    +
    + + +GROUP:SetTemplateCountry(CountryID, Template) + +
    +
    + +

    Sets the CountryID of the group in a Template.

    + +

    Parameters

    + +

    Return value

    + +

    #table:

    + +
    diff --git a/Moose Training/Documentation/Identifiable.html b/Moose Training/Documentation/Identifiable.html index 3b30e11ca..0f3cc9c40 100644 --- a/Moose Training/Documentation/Identifiable.html +++ b/Moose Training/Documentation/Identifiable.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -131,6 +132,12 @@ IDENTIFIABLE.ClassName + + + + IDENTIFIABLE:GetCategory() + +

    Returns category of the DCS Identifiable.

    @@ -223,6 +230,24 @@ + +
    +
    +
    + + +IDENTIFIABLE:GetCategory() + +
    +
    + +

    Returns category of the DCS Identifiable.

    + +

    Return value

    + +

    DCSObject#Object.Category: +The category ID

    +
    diff --git a/Moose Training/Documentation/MISSION.html b/Moose Training/Documentation/MISSION.html index a44aece40..f349b86c9 100644 --- a/Moose Training/Documentation/MISSION.html +++ b/Moose Training/Documentation/MISSION.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/MOVEMENT.html b/Moose Training/Documentation/MOVEMENT.html index 305f917a3..90ec5605b 100644 --- a/Moose Training/Documentation/MOVEMENT.html +++ b/Moose Training/Documentation/MOVEMENT.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Menu.html b/Moose Training/Documentation/Menu.html index 0f175ce8f..cc6276f86 100644 --- a/Moose Training/Documentation/Menu.html +++ b/Moose Training/Documentation/Menu.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Message.html b/Moose Training/Documentation/Message.html index 238b511e6..8b494fb03 100644 --- a/Moose Training/Documentation/Message.html +++ b/Moose Training/Documentation/Message.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/MissileTrainer.html b/Moose Training/Documentation/MissileTrainer.html index e387d6ad0..03a1fd552 100644 --- a/Moose Training/Documentation/MissileTrainer.html +++ b/Moose Training/Documentation/MissileTrainer.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/NOTASK.html b/Moose Training/Documentation/NOTASK.html index d295f2fd7..f765ed02a 100644 --- a/Moose Training/Documentation/NOTASK.html +++ b/Moose Training/Documentation/NOTASK.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • diff --git a/Moose Training/Documentation/Object.html b/Moose Training/Documentation/Object.html index eb36a3165..39b818c12 100644 --- a/Moose Training/Documentation/Object.html +++ b/Moose Training/Documentation/Object.html @@ -35,6 +35,7 @@
  • DCSTypes
  • DCSUnit
  • DCSWorld
  • +
  • DCScountry
  • DCStimer
  • DEPLOYTASK
  • DESTROYBASETASK
  • @@ -138,51 +139,9 @@ - OBJECT:GetCallSign() + OBJECT:GetID() -

    Returns the Object's callsign - the localized string.

    - - - - OBJECT:GetCategoryName() - -

    Returns the DCS Object category name as defined within the DCS Object Descriptor.

    - - - - OBJECT:GetCoalition() - -

    Returns coalition of the Object.

    - - - - OBJECT:GetCountry() - -

    Returns country of the Object.

    - - - - OBJECT:GetDesc() - -

    Returns Object descriptor.

    - - - - OBJECT:GetName() - -

    Returns DCS Object object name.

    - - - - OBJECT:GetTypeName() - -

    Returns the type name of the DCS Object.

    - - - - OBJECT:IsAlive() - -

    Returns if the Object is alive.

    +

    Returns the unit's unique identifier.

    @@ -257,212 +216,20 @@
    - -OBJECT:GetCallSign() + +OBJECT:GetID()
    -

    Returns the Object's callsign - the localized string.

    +

    Returns the unit's unique identifier.

    Return values

    1. -

      #string: -The Callsign of the Object.

      - -
    2. -
    3. - -

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

      - -
    4. -
    -
    -
    -
    -
    - - -OBJECT:GetCategoryName() - -
    -
    - -

    Returns the DCS Object category name as defined within the DCS Object Descriptor.

    - -

    Return value

    - -

    #string: -The DCS Object Category Name

    - -
    -
    -
    -
    - - -OBJECT:GetCoalition() - -
    -
    - -

    Returns coalition of the Object.

    - -

    Return values

    -
      -
    1. - -

      DCSCoalitionObject#coalition.side: -The side of the coalition.

      - -
    2. -
    3. - -

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

      - -
    4. -
    -
    -
    -
    -
    - - -OBJECT:GetCountry() - -
    -
    - -

    Returns country of the Object.

    - -

    Return values

    -
      -
    1. - -

      DCScountry#country.id: -The country identifier.

      - -
    2. -
    3. - -

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

      - -
    4. -
    -
    -
    -
    -
    - - -OBJECT:GetDesc() - -
    -
    - -

    Returns Object descriptor.

    - - -

    Descriptor type depends on Object category.

    - -

    Return values

    -
      -
    1. - -

      DCSObject#Object.Desc: -The Object descriptor.

      - -
    2. -
    3. - -

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

      - -
    4. -
    -
    -
    -
    -
    - - -OBJECT:GetName() - -
    -
    - -

    Returns DCS Object object name.

    - - -

    The function provides access to non-activated objects too.

    - -

    Return values

    -
      -
    1. - -

      #string: -The name of the DCS Object.

      - -
    2. -
    3. - -

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

      - -
    4. -
    -
    -
    -
    -
    - - -OBJECT:GetTypeName() - -
    -
    - -

    Returns the type name of the DCS Object.

    - -

    Return values

    -
      -
    1. - -

      #string: -The type name of the DCS Object.

      - -
    2. -
    3. - -

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

      - -
    4. -
    -
    -
    -
    -
    - - -OBJECT:IsAlive() - -
    -
    - -

    Returns if the Object is alive.

    - -

    Return values

    -
      -
    1. - -

      #boolean: -true if Object is alive.

      +

      DCSObject#Object.ID: +ObjectID

    2. diff --git a/Moose Training/Documentation/PICKUPTASK.html b/Moose Training/Documentation/PICKUPTASK.html index b4d42b424..2c26a4668 100644 --- a/Moose Training/Documentation/PICKUPTASK.html +++ b/Moose Training/Documentation/PICKUPTASK.html @@ -35,6 +35,7 @@
    3. DCSTypes
    4. DCSUnit
    5. DCSWorld
    6. +
    7. DCScountry
    8. DCStimer
    9. DEPLOYTASK
    10. DESTROYBASETASK
    11. diff --git a/Moose Training/Documentation/PatrolZone.html b/Moose Training/Documentation/PatrolZone.html index 57e301d3f..4b827c585 100644 --- a/Moose Training/Documentation/PatrolZone.html +++ b/Moose Training/Documentation/PatrolZone.html @@ -35,6 +35,7 @@
    12. DCSTypes
    13. DCSUnit
    14. DCSWorld
    15. +
    16. DCScountry
    17. DCStimer
    18. DEPLOYTASK
    19. DESTROYBASETASK
    20. diff --git a/Moose Training/Documentation/Point.html b/Moose Training/Documentation/Point.html index ad61c002b..3df9956bc 100644 --- a/Moose Training/Documentation/Point.html +++ b/Moose Training/Documentation/Point.html @@ -35,6 +35,7 @@
    21. DCSTypes
    22. DCSUnit
    23. DCSWorld
    24. +
    25. DCScountry
    26. DCStimer
    27. DEPLOYTASK
    28. DESTROYBASETASK
    29. diff --git a/Moose Training/Documentation/Positionable.html b/Moose Training/Documentation/Positionable.html index d6801e50e..eef6b1fcc 100644 --- a/Moose Training/Documentation/Positionable.html +++ b/Moose Training/Documentation/Positionable.html @@ -35,6 +35,7 @@
    30. DCSTypes
    31. DCSUnit
    32. DCSWorld
    33. +
    34. DCScountry
    35. DCStimer
    36. DEPLOYTASK
    37. DESTROYBASETASK
    38. diff --git a/Moose Training/Documentation/ROUTETASK.html b/Moose Training/Documentation/ROUTETASK.html index b4b6af4de..540000e02 100644 --- a/Moose Training/Documentation/ROUTETASK.html +++ b/Moose Training/Documentation/ROUTETASK.html @@ -35,6 +35,7 @@
    39. DCSTypes
    40. DCSUnit
    41. DCSWorld
    42. +
    43. DCScountry
    44. DCStimer
    45. DEPLOYTASK
    46. DESTROYBASETASK
    47. diff --git a/Moose Training/Documentation/STAGE.html b/Moose Training/Documentation/STAGE.html index bb3a81b5d..adacdaa27 100644 --- a/Moose Training/Documentation/STAGE.html +++ b/Moose Training/Documentation/STAGE.html @@ -35,6 +35,7 @@
    48. DCSTypes
    49. DCSUnit
    50. DCSWorld
    51. +
    52. DCScountry
    53. DCStimer
    54. DEPLOYTASK
    55. DESTROYBASETASK
    56. diff --git a/Moose Training/Documentation/Scheduler.html b/Moose Training/Documentation/Scheduler.html index 0e09087bb..3cdcbdb91 100644 --- a/Moose Training/Documentation/Scheduler.html +++ b/Moose Training/Documentation/Scheduler.html @@ -35,6 +35,7 @@
    57. DCSTypes
    58. DCSUnit
    59. DCSWorld
    60. +
    61. DCScountry
    62. DCStimer
    63. DEPLOYTASK
    64. DESTROYBASETASK
    65. diff --git a/Moose Training/Documentation/Scoring.html b/Moose Training/Documentation/Scoring.html index fd4e0d8a4..09f0747b0 100644 --- a/Moose Training/Documentation/Scoring.html +++ b/Moose Training/Documentation/Scoring.html @@ -35,6 +35,7 @@
    66. DCSTypes
    67. DCSUnit
    68. DCSWorld
    69. +
    70. DCScountry
    71. DCStimer
    72. DEPLOYTASK
    73. DESTROYBASETASK
    74. diff --git a/Moose Training/Documentation/Sead.html b/Moose Training/Documentation/Sead.html index d712387fc..e2a5ae18c 100644 --- a/Moose Training/Documentation/Sead.html +++ b/Moose Training/Documentation/Sead.html @@ -35,6 +35,7 @@
    75. DCSTypes
    76. DCSUnit
    77. DCSWorld
    78. +
    79. DCScountry
    80. DCStimer
    81. DEPLOYTASK
    82. DESTROYBASETASK
    83. diff --git a/Moose Training/Documentation/Set.html b/Moose Training/Documentation/Set.html index c618696b0..642df566e 100644 --- a/Moose Training/Documentation/Set.html +++ b/Moose Training/Documentation/Set.html @@ -35,6 +35,7 @@
    84. DCSTypes
    85. DCSUnit
    86. DCSWorld
    87. +
    88. DCScountry
    89. DCStimer
    90. DEPLOYTASK
    91. DESTROYBASETASK
    92. @@ -1506,7 +1507,7 @@ The closest object.

      Flushes the current SET_BASE contents in the log ...

      -

      (for debug reasons).

      +

      (for debugging reasons).

      Return value

      diff --git a/Moose Training/Documentation/Spawn.html b/Moose Training/Documentation/Spawn.html index f50b51d79..bbb0a1012 100644 --- a/Moose Training/Documentation/Spawn.html +++ b/Moose Training/Documentation/Spawn.html @@ -35,6 +35,7 @@
    93. DCSTypes
    94. DCSUnit
    95. DCSWorld
    96. +
    97. DCScountry
    98. DCStimer
    99. DEPLOYTASK
    100. DESTROYBASETASK
    101. diff --git a/Moose Training/Documentation/Static.html b/Moose Training/Documentation/Static.html index 70c8ae9ed..9623e149e 100644 --- a/Moose Training/Documentation/Static.html +++ b/Moose Training/Documentation/Static.html @@ -35,6 +35,7 @@
    102. DCSTypes
    103. DCSUnit
    104. DCSWorld
    105. +
    106. DCScountry
    107. DCStimer
    108. DEPLOYTASK
    109. DESTROYBASETASK
    110. diff --git a/Moose Training/Documentation/StaticObject.html b/Moose Training/Documentation/StaticObject.html index a7273b25a..da3a69a1d 100644 --- a/Moose Training/Documentation/StaticObject.html +++ b/Moose Training/Documentation/StaticObject.html @@ -35,6 +35,7 @@
    111. DCSTypes
    112. DCSUnit
    113. DCSWorld
    114. +
    115. DCScountry
    116. DCStimer
    117. DEPLOYTASK
    118. DESTROYBASETASK
    119. diff --git a/Moose Training/Documentation/TASK.html b/Moose Training/Documentation/TASK.html index 8c57f3460..3a47c534b 100644 --- a/Moose Training/Documentation/TASK.html +++ b/Moose Training/Documentation/TASK.html @@ -35,6 +35,7 @@
    120. DCSTypes
    121. DCSUnit
    122. DCSWorld
    123. +
    124. DCScountry
    125. DCStimer
    126. DEPLOYTASK
    127. DESTROYBASETASK
    128. diff --git a/Moose Training/Documentation/Unit.html b/Moose Training/Documentation/Unit.html index 573d22500..1a3baca8f 100644 --- a/Moose Training/Documentation/Unit.html +++ b/Moose Training/Documentation/Unit.html @@ -35,6 +35,7 @@
    129. DCSTypes
    130. DCSUnit
    131. DCSWorld
    132. +
    133. DCScountry
    134. DCStimer
    135. DEPLOYTASK
    136. DESTROYBASETASK
    137. diff --git a/Moose Training/Documentation/Zone.html b/Moose Training/Documentation/Zone.html index 9980a0bb2..9fbef93d4 100644 --- a/Moose Training/Documentation/Zone.html +++ b/Moose Training/Documentation/Zone.html @@ -35,6 +35,7 @@
    138. DCSTypes
    139. DCSUnit
    140. DCSWorld
    141. +
    142. DCScountry
    143. DCStimer
    144. DEPLOYTASK
    145. DESTROYBASETASK
    146. @@ -107,8 +108,9 @@
    147. Zone#ZONE_BASE: The ZONE_BASE class defining the base for all other zone classes.
    148. Zone#ZONE_RADIUS: The ZONE_RADIUS class defined by a zone name, a location and a radius.
    149. Zone#ZONE: The ZONE class, defined by the zone name as defined within the Mission Editor.
    150. -
    151. Zone#ZONE_UNIT: The ZONE_UNIT class defined by a zone around a Unit#UNIT with a radius.
    152. -
    153. Zone#ZONE_POLYGON: The ZONE_POLYGON class defined by a sequence of Group#GROUP waypoints within the Mission Editor, forming a polygon.
    154. +
    155. Zone#ZONE_UNIT: The ZONE_UNIT class defines by a zone around a Unit#UNIT with a radius.
    156. +
    157. Zone#ZONE_GROUP: The ZONE_GROUP class defines by a zone around a Group#GROUP with a radius.
    158. +
    159. Zone#ZONE_POLYGON: The ZONE_POLYGON class defines by a sequence of Group#GROUP waypoints within the Mission Editor, forming a polygon.
    160. Each zone implements two polymorphic functions defined in Zone#ZONE_BASE:

      @@ -140,7 +142,12 @@
      -

      5) Zone#ZONE_POLYGON class, extends Zone#ZONE_BASE

      +

      5) Zone#ZONE_GROUP class, extends Zone#ZONE_RADIUS

      +

      The ZONE_GROUP class defines by a zone around a Group#GROUP with a radius. The current leader of the group defines the center of the zone.

      + +
      + +

      6) Zone#ZONE_POLYGON class, extends Zone#ZONE_BASE

      The ZONE_POLYGON class defined by a sequence of Group#GROUP waypoints within the Mission Editor, forming a polygon.


      @@ -158,6 +165,12 @@ ZONE_BASE + + + + ZONE_GROUP + + @@ -277,6 +290,40 @@ ZONE_BASE.BoundingSquare.y2

      The higher y coordinate (right up)

      + + + + +

      Type ZONE_GROUP

      + + + + + + + + + + + + + + + + + + + +
      ZONE_GROUP.ClassName + +
      ZONE_GROUP:GetPointVec2() +

      Returns the current location of the Group.

      +
      ZONE_GROUP:GetRandomVec2() +

      Returns a random location within the zone of the Group.

      +
      ZONE_GROUP:New(ZoneName, ZoneGROUP, Radius) +

      Constructor to create a ZONE_GROUP instance, taking the zone name, a zone Group#GROUP and a radius.

      +
      ZONE_GROUP.ZoneGROUP +
      @@ -449,6 +496,12 @@ ZONE_UNIT:GetPointVec2()

      Returns the current location of the Unit#UNIT.

      + + + + ZONE_UNIT:GetRandomVec2() + +

      Returns a random location within the zone.

      @@ -492,6 +545,20 @@ +
    +
    +
    +
    + + #ZONE_GROUP + +ZONE_GROUP + +
    +
    + + +
    @@ -838,6 +905,115 @@ The smoke color.

    The higher y coordinate (right up)

    + +
    + +

    Type ZONE_GROUP

    + +

    The ZONE_GROUP class defined by a zone around a Group, taking the average center point of all the units within the Group, with a radius.

    + +

    Field(s)

    +
    +
    + + #string + +ZONE_GROUP.ClassName + +
    +
    + + + +
    +
    +
    +
    + + +ZONE_GROUP:GetPointVec2() + +
    +
    + +

    Returns the current location of the Group.

    + +

    Return value

    + +

    DCSTypes#Vec2: +The location of the zone based on the Group location.

    + +
    +
    +
    +
    + + +ZONE_GROUP:GetRandomVec2() + +
    +
    + +

    Returns a random location within the zone of the Group.

    + +

    Return value

    + +

    DCSTypes#Vec2: +The random location of the zone based on the Group location.

    + +
    +
    +
    +
    + + +ZONE_GROUP:New(ZoneName, ZoneGROUP, Radius) + +
    +
    + +

    Constructor to create a ZONE_GROUP instance, taking the zone name, a zone Group#GROUP and a radius.

    + +

    Parameters

    +
      +
    • + +

      #string ZoneName : +Name of the zone.

      + +
    • +
    • + +

      Group#GROUP ZoneGROUP : +The Group as the center of the zone.

      + +
    • +
    • + +

      DCSTypes#Distance Radius : +The radius of the zone.

      + +
    • +
    +

    Return value

    + +

    #ZONE_GROUP: +self

    + +
    +
    +
    +
    + + Group#GROUP + +ZONE_GROUP.ZoneGROUP + +
    +
    + + +
    @@ -981,6 +1157,9 @@ The Vec2 coordinate.

    Returns if a location is within the zone.

    + +

    Source learned and taken from: https://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html

    +

    Parameter