diff --git a/Moose Development/Moose/Tasking/Task_CARGO.lua b/Moose Development/Moose/Tasking/Task_CARGO.lua index b61eb6b86..44d3523d9 100644 --- a/Moose Development/Moose/Tasking/Task_CARGO.lua +++ b/Moose Development/Moose/Tasking/Task_CARGO.lua @@ -1,11 +1,20 @@ ---- **Tasking** - The TASK_CARGO models tasks for players to transport @{Cargo}. --- --- ![Banner Image]() --- +--- **Tasking (Release 2.1)** -- The TASK_CARGO models tasks for players to transport @{Cargo}. -- +-- ![Banner Image](..\Presentations\TASK_CARGO\Dia1.JPG) -- -- ==== -- +-- Cargo are units or cargo objects within DCS world that allow to be transported or sling loaded by other units. +-- The CARGO class, as part of the moose core, is able to Board, Load, UnBoard and UnLoad from Carrier units. +-- This collection of classes in this module define tasks for human players to handle cargo objects. +-- Cargo can be transported, picked-up, deployed and sling-loaded from and to other places. +-- +-- The following classes are important to consider: +-- +-- * @{#TASK_CARGO_TRANSPORT}: Defines a task for a human player to transport a set of cargo between various zones. +-- +-- == +-- -- # **API CHANGE HISTORY** -- -- The underlying change log documents the API changes. Please read this carefully. The following notation is used: @@ -23,8 +32,6 @@ -- -- ### Contributions: -- --- * **[WingThor]**: Concept, Advice & Testing. --- -- ### Authors: -- -- * **FlightControl**: Concept, Design & Programming. diff --git a/docs/Documentation/AI_Balancer.html b/docs/Documentation/AI_Balancer.html index 2b5f48f01..5e65668f3 100644 --- a/docs/Documentation/AI_Balancer.html +++ b/docs/Documentation/AI_Balancer.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/AI_Cap.html b/docs/Documentation/AI_Cap.html index 0657d3fa0..425bec51b 100644 --- a/docs/Documentation/AI_Cap.html +++ b/docs/Documentation/AI_Cap.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/AI_Cas.html b/docs/Documentation/AI_Cas.html index 10992a925..255b3646d 100644 --- a/docs/Documentation/AI_Cas.html +++ b/docs/Documentation/AI_Cas.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/AI_Patrol.html b/docs/Documentation/AI_Patrol.html index f4e911447..0f68f6d16 100644 --- a/docs/Documentation/AI_Patrol.html +++ b/docs/Documentation/AI_Patrol.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Account.html b/docs/Documentation/Account.html index ad23ec3ca..69239c4d4 100644 --- a/docs/Documentation/Account.html +++ b/docs/Documentation/Account.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Airbase.html b/docs/Documentation/Airbase.html index 328b41564..40b70c5df 100644 --- a/docs/Documentation/Airbase.html +++ b/docs/Documentation/Airbase.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/AirbasePolice.html b/docs/Documentation/AirbasePolice.html index 93fdd0ae2..3bfe030d8 100644 --- a/docs/Documentation/AirbasePolice.html +++ b/docs/Documentation/AirbasePolice.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Assign.html b/docs/Documentation/Assign.html index e352ed51e..039ba460e 100644 --- a/docs/Documentation/Assign.html +++ b/docs/Documentation/Assign.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Base.html b/docs/Documentation/Base.html index 6a32f5c84..2a833045d 100644 --- a/docs/Documentation/Base.html +++ b/docs/Documentation/Base.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Cargo.html b/docs/Documentation/Cargo.html index d0b6aea75..e811fa80c 100644 --- a/docs/Documentation/Cargo.html +++ b/docs/Documentation/Cargo.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -97,60 +98,7 @@
  • AICARGOGROUPED, represented by a Group of CARGO_UNITs.
  • -

    1) #AI_CARGO class, extends Fsm#FSM_PROCESS

    -

    The #AI_CARGO class defines the core functions that defines a cargo object within MOOSE. -A cargo is a logical object defined that is available for transport, and has a life status within a simulation.

    - -

    The AICARGO is a state machine: it manages the different events and states of the cargo. -All derived classes from AICARGO follow the same state machine, expose the same cargo event functions, and provide the same cargo states.

    - -

    1.2.1) AI_CARGO Events:

    - - - -

    1.2.2) AI_CARGO States:

    - - - -

    1.2.3) AI_CARGO state transition methods:

    - -

    State transition functions can be set by the mission designer customizing or improving the behaviour of the state. -There are 2 moments when state transition methods will be called by the state machine:

    - - - -

    2) #AICARGOUNIT class

    - -

    The AICARGOUNIT class defines a cargo that is represented by a UNIT object within the simulator, and can be transported by a carrier. -Use the event functions as described above to Load, UnLoad, Board, UnBoard the AICARGOUNIT objects to and from carriers.

    - -

    5) #AICARGOGROUPED class

    - -

    The AICARGOGROUPED class defines a cargo that is represented by a group of UNIT objects within the simulator, and can be transported by a carrier. -Use the event functions as described above to Load, UnLoad, Board, UnBoard the AICARGOUNIT objects to and from carriers.

    This module is still under construction, but is described above works already, and will keep working ...

    @@ -160,19 +108,25 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A AI_CARGO +

    AI_CARGO class, extends Fsm#FSM_PROCESS

    +

    The AI_CARGO class defines the core functions that defines a cargo object within MOOSE.

    AI_CARGO_GROUP +

    AI_CARGO_GROUP class

    +

    The AI_CARGO_GROUP class defines a cargo that is represented by a group of Unit objects within the simulator, and can be transported by a carrier.

    AI_CARGO_GROUPED +

    AI_CARGO_GROUPED class

    +

    The AI_CARGO_GROUPED class defines a cargo that is represented by a group of UNIT objects within the simulator, and can be transported by a carrier.

    @@ -190,7 +144,9 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A AI_CARGO_UNIT +

    AI_CARGO_UNIT class, extends #AICARGOREPRESENTABLE

    +

    The AI_CARGO_UNIT class defines a cargo that is represented by a UNIT object within the simulator, and can be transported by a carrier.

    @@ -218,24 +174,66 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A AI_CARGO.CargoObject

    The alive DCS object representing the cargo. This value can be nil, meaning, that the cargo is not represented anywhere...

    - - - - AI_CARGO.ClassName - - AI_CARGO.Containable

    This flag defines if the cargo can be contained within a DCS Unit.

    + + + + AI_CARGO:GetBoardingRange() + +

    Get the range till cargo will board.

    + + + + AI_CARGO:GetName() + +

    Get the name of the Cargo.

    + + + + AI_CARGO:GetPointVec2() + +

    Get the current PointVec2 of the cargo.

    + + + + AI_CARGO:GetType() + +

    Get the type of the Cargo.

    + + + + AI_CARGO:IsInRadius(PointVec2) + +

    Check if CargoCarrier is in the radius for the Cargo to be Loaded.

    + + + + AI_CARGO:IsInZone(Zone) + +

    Check if Cargo is the given Zone.

    + + + + AI_CARGO:IsLoaded() + +

    Check if cargo is loaded.

    AI_CARGO:IsNear(PointVec2)

    Check if CargoCarrier is near the Cargo to be Loaded.

    + + + + AI_CARGO:IsUnLoaded() + +

    Check if cargo is unloaded.

    @@ -396,12 +394,6 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A AI_CARGO_GROUP.CargoSet

    A set of cargo objects.

    - - - - AI_CARGO_GROUP.ClassName - - @@ -421,12 +413,6 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A

    Type AI_CARGO_GROUPED

    - - - - - + @@ -607,7 +593,7 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A - + @@ -619,7 +605,7 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A - + @@ -643,7 +629,7 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A - + @@ -667,6 +653,52 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A
    +

    AI_CARGO class, extends Fsm#FSM_PROCESS

    + +

    The AI_CARGO class defines the core functions that defines a cargo object within MOOSE.

    + + +

    A cargo is a logical object defined that is available for transport, and has a life status within a simulation.

    + +

    The AI_CARGO is a state machine: it manages the different events and states of the cargo. +All derived classes from AI_CARGO follow the same state machine, expose the same cargo event functions, and provide the same cargo states.

    + +

    AI_CARGO Events:

    + + + +

    AI_CARGO States:

    + + + +

    AI_CARGO state transition methods:

    + +

    State transition functions can be set by the mission designer customizing or improving the behaviour of the state. +There are 2 moments when state transition methods will be called by the state machine:

    + +
    @@ -681,6 +713,12 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A
    +

    AI_CARGO_GROUP class

    + +

    The AI_CARGO_GROUP class defines a cargo that is represented by a group of Unit objects within the simulator, and can be transported by a carrier.

    + + +

    Use the event functions as described above to Load, UnLoad, Board, UnBoard the AI_CARGO_GROUP to and from carrier.

    @@ -695,6 +733,12 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A
    +

    AI_CARGO_GROUPED class

    + +

    The AI_CARGO_GROUPED class defines a cargo that is represented by a group of UNIT objects within the simulator, and can be transported by a carrier.

    + + +

    Use the event functions as described above to Load, UnLoad, Board, UnBoard the AI_CARGO_UNIT objects to and from carriers.

    @@ -737,6 +781,14 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A
    +

    AI_CARGO_UNIT class, extends #AICARGOREPRESENTABLE

    + +

    The AI_CARGO_UNIT class defines a cargo that is represented by a UNIT object within the simulator, and can be transported by a carrier.

    + + +

    Use the event functions as described above to Load, UnLoad, Board, UnBoard the AI_CARGO_UNIT objects to and from carriers.

    + +
    @@ -811,20 +863,6 @@ The Carrier that will hold the cargo.

    The alive DCS object representing the cargo. This value can be nil, meaning, that the cargo is not represented anywhere...

    - - -
    -
    - - #string - -AI_CARGO.ClassName - -
    -
    - - -
    @@ -844,6 +882,148 @@ The Carrier that will hold the cargo.

    + +AI_CARGO:GetBoardingRange() + +
    +
    + +

    Get the range till cargo will board.

    + +

    Return value

    + +

    #number: +The range till cargo will board.

    + +
    +
    +
    +
    + + +AI_CARGO:GetName() + +
    +
    + +

    Get the name of the Cargo.

    + +

    Return value

    + +

    #string: +The name of the Cargo.

    + +
    +
    +
    +
    + + +AI_CARGO:GetPointVec2() + +
    +
    + +

    Get the current PointVec2 of the cargo.

    + +

    Return value

    + +

    Core.Point#POINT_VEC2:

    + + +
    +
    +
    +
    + + +AI_CARGO:GetType() + +
    +
    + +

    Get the type of the Cargo.

    + +

    Return value

    + +

    #string: +The type of the Cargo.

    + +
    +
    +
    +
    + + +AI_CARGO:IsInRadius(PointVec2) + +
    +
    + +

    Check if CargoCarrier is in the radius for the Cargo to be Loaded.

    + +

    Parameter

    + +

    Return value

    + +

    #boolean:

    + + +
    +
    +
    +
    + + +AI_CARGO:IsInZone(Zone) + +
    +
    + +

    Check if Cargo is the given Zone.

    + +

    Parameter

    + +

    Return value

    + +

    #boolean: +true if cargo is in the Zone, false if cargo is not in the Zone.

    + +
    +
    +
    +
    + + +AI_CARGO:IsLoaded() + +
    +
    + +

    Check if cargo is loaded.

    + +

    Return value

    + +

    #boolean: +true if loaded

    + +
    +
    +
    +
    + AI_CARGO:IsNear(PointVec2) @@ -865,6 +1045,24 @@ The Carrier that will hold the cargo.

    #boolean:

    + +
    +
    +
    + + +AI_CARGO:IsUnLoaded() + +
    +
    + +

    Check if cargo is unloaded.

    + +

    Return value

    + +

    #boolean: +true if unloaded

    +
    @@ -1467,20 +1665,6 @@ The amount of seconds to delay the action.

    A set of cargo objects.

    - -
    -
    -
    - - #string - -AI_CARGO_GROUP.ClassName - -
    -
    - - -
    @@ -1556,20 +1740,6 @@ The amount of seconds to delay the action.

    - #string - -AI_CARGO_GROUPED.ClassName - -
    -
    - - - -
    -
    -
    -
    - AI_CARGO_GROUPED:New(CargoSet, Type, Name, Weight, ReportRadius, NearRadius) @@ -2426,6 +2596,7 @@ The UNIT carrying the package.

    + AI_CARGO_UNIT.CargoCarrier @@ -2467,13 +2638,17 @@ The UNIT carrying the package.

    - #string - -AI_CARGO_UNIT.ClassName + +AI_CARGO_UNIT:Destroy()
    +

    AICARGOUNIT Destructor.

    + +

    Return value

    + +

    #AICARGOUNIT:

    @@ -2548,7 +2723,7 @@ The UNIT carrying the package.

    -AI_CARGO_UNIT:onafterBoard(Event, From, To, CargoCarrier) +AI_CARGO_UNIT:onafterBoard(Event, From, To, CargoCarrier, ...)
    @@ -2576,6 +2751,11 @@ The UNIT carrying the package.

    CargoCarrier :

    + +
  • + +

    ... :

    +
  • @@ -2620,7 +2800,7 @@ The UNIT carrying the package.

    -AI_CARGO_UNIT:onenterBoarding(Event, From, To, CargoCarrier) +AI_CARGO_UNIT:onenterBoarding(Event, From, To, CargoCarrier, ...)
    @@ -2648,6 +2828,11 @@ The UNIT carrying the package.

    Wrapper.Unit#UNIT CargoCarrier :

    + +
  • + +

    ... :

    +
  • @@ -2770,7 +2955,7 @@ Point#POINT_VEC2

    -AI_CARGO_UNIT:onleaveBoarding(Event, From, To, CargoCarrier) +AI_CARGO_UNIT:onleaveBoarding(Event, From, To, CargoCarrier, ...)
    @@ -2798,6 +2983,11 @@ Point#POINT_VEC2

    Wrapper.Unit#UNIT CargoCarrier :

    + +
  • + +

    ... :

    +
  • diff --git a/docs/Documentation/CleanUp.html b/docs/Documentation/CleanUp.html index 60829d2bc..7cdcb71be 100644 --- a/docs/Documentation/CleanUp.html +++ b/docs/Documentation/CleanUp.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Client.html b/docs/Documentation/Client.html index 565f34b9b..748b7c484 100644 --- a/docs/Documentation/Client.html +++ b/docs/Documentation/Client.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/CommandCenter.html b/docs/Documentation/CommandCenter.html index 3384b0fa4..ae6d16afd 100644 --- a/docs/Documentation/CommandCenter.html +++ b/docs/Documentation/CommandCenter.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Controllable.html b/docs/Documentation/Controllable.html index 22bfaf97f..0e34ab8f8 100644 --- a/docs/Documentation/Controllable.html +++ b/docs/Documentation/Controllable.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Database.html b/docs/Documentation/Database.html index 0309494e8..31388c613 100644 --- a/docs/Documentation/Database.html +++ b/docs/Documentation/Database.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -83,12 +84,14 @@

    Mission designers can use the DATABASE class to refer to:

      +
    • STATICS
    • UNITS
    • GROUPS
    • CLIENTS
    • -
    • AIRPORTS
    • +
    • AIRBASES
    • PLAYERSJOINED
    • PLAYERS
    • +
    • CARGOS

    On top, for internal MOOSE administration purposes, the DATBASE administers the Unit and Group TEMPLATES as defined within the Mission Editor.

    @@ -131,9 +134,15 @@ The following iterator methods are currently available within the DATABASE:

    - + + + + + @@ -164,6 +173,12 @@ The following iterator methods are currently available within the DATABASE:

    + + + + @@ -191,9 +206,15 @@ The following iterator methods are currently available within the DATABASE:

    - + + + + + @@ -217,7 +238,13 @@ The following iterator methods are currently available within the DATABASE:

    + + + + @@ -248,6 +275,12 @@ The following iterator methods are currently available within the DATABASE:

    + + + + @@ -350,6 +383,18 @@ The following iterator methods are currently available within the DATABASE:

    + + + + + + + + @@ -502,7 +547,7 @@ The following iterator methods are currently available within the DATABASE:

    -DATABASE:AddAirbase(DCSAirbaseName) +DATABASE:AddAirbase(AirbaseName)
    @@ -513,7 +558,35 @@ The following iterator methods are currently available within the DATABASE:

    +
    + +
    +
    + + +DATABASE:AddCargo(CargoName, Cargo) + +
    +
    + +

    Adds a Cargo based on the Cargo Name in the DATABASE.

    + +

    Parameters

    + @@ -627,6 +700,20 @@ The following iterator methods are currently available within the DATABASE:

    +
    +
    +
    +
    + + + +DATABASE.CARGOS + +
    +
    + + +
    @@ -689,7 +776,7 @@ The following iterator methods are currently available within the DATABASE:

    -DATABASE:DeleteAirbase(DCSAirbaseName) +DATABASE:DeleteAirbase(AirbaseName)
    @@ -700,7 +787,30 @@ The following iterator methods are currently available within the DATABASE:

    +
    +
    +
    +
    + + +DATABASE:DeleteCargo(CargoName) + +
    +
    + +

    Deletes a Cargo from the DATABASE based on the Cargo Name.

    + +

    Parameter

    + @@ -778,7 +888,7 @@ The following iterator methods are currently available within the DATABASE:

    -

    Finds a AIRBASE based on the AirbaseName.

    +

    Finds an AIRBASE based on the AirbaseName.

    Parameter

    +
    +
    +
    + + +DATABASE:OnEventDeleteCargo(EventData) + +
    +
    + +

    Handles the OnEventDeleteCargo.

    + +

    Parameter

    + +
    +
    +
    +
    + + +DATABASE:OnEventNewCargo(EventData) + +
    +
    + +

    Handles the OnEventNewCargo event.

    + +

    Parameter

    +
    diff --git a/docs/Documentation/Detection.html b/docs/Documentation/Detection.html index 64ac45ee0..c1db43d89 100644 --- a/docs/Documentation/Detection.html +++ b/docs/Documentation/Detection.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -2238,7 +2239,7 @@ self

    - + #number DETECTION_BASE.DetectionInterval diff --git a/docs/Documentation/DetectionManager.html b/docs/Documentation/DetectionManager.html index e31707159..542edf755 100644 --- a/docs/Documentation/DetectionManager.html +++ b/docs/Documentation/DetectionManager.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Escort.html b/docs/Documentation/Escort.html index d2890d3e0..bc481cf03 100644 --- a/docs/Documentation/Escort.html +++ b/docs/Documentation/Escort.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Event.html b/docs/Documentation/Event.html index da27fb360..6c74344c9 100644 --- a/docs/Documentation/Event.html +++ b/docs/Documentation/Event.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -309,6 +310,18 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    + + + + + + + + @@ -440,6 +453,18 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    Type EVENTDATA

    AI_CARGO_GROUPED.ClassName - -
    AI_CARGO_GROUPED:New(CargoSet, Type, Name, Weight, ReportRadius, NearRadius)

    AICARGOGROUPED constructor.

    @@ -589,9 +575,9 @@ Use the event functions as described above to Load, UnLoad, Board, UnBoard the A
    AI_CARGO_UNIT.ClassNameAI_CARGO_UNIT:Destroy() - +

    AICARGOUNIT Destructor.

    AI_CARGO_UNIT:onafterBoard(Event, From, To, CargoCarrier)AI_CARGO_UNIT:onafterBoard(Event, From, To, CargoCarrier, ...)

    Board Event.

    AI_CARGO_UNIT:onenterBoarding(Event, From, To, CargoCarrier)AI_CARGO_UNIT:onenterBoarding(Event, From, To, CargoCarrier, ...)

    Enter Boarding State.

    AI_CARGO_UNIT:onleaveBoarding(Event, From, To, CargoCarrier)AI_CARGO_UNIT:onleaveBoarding(Event, From, To, CargoCarrier, ...)

    Leave Boarding State.

    DATABASE:AddAirbase(DCSAirbaseName)DATABASE:AddAirbase(AirbaseName)

    Adds a Airbase based on the Airbase Name in the DATABASE.

    +
    DATABASE:AddCargo(CargoName, Cargo) +

    Adds a Cargo based on the Cargo Name in the DATABASE.

    DATABASE:AddUnit(DCSUnitName)

    Adds a Unit based on the Unit Name in the DATABASE.

    +
    DATABASE.CARGOS +
    DATABASE:DeleteAirbase(DCSAirbaseName)DATABASE:DeleteAirbase(AirbaseName)

    Deletes a Airbase from the DATABASE based on the Airbase Name.

    +
    DATABASE:DeleteCargo(CargoName) +

    Deletes a Cargo from the DATABASE based on the Cargo Name.

    DATABASE:FindAirbase(AirbaseName) -

    Finds a AIRBASE based on the AirbaseName.

    +

    Finds an AIRBASE based on the AirbaseName.

    +
    DATABASE:FindCargo(CargoName) +

    Finds an CARGO based on the CargoName.

    DATABASE:ForEach(IteratorFunction, FinalizeFunction, arg, Set)

    Iterate the DATABASE and call an iterator function for the given set, providing the Object for each element within the set and optional parameters.

    +
    DATABASE:ForEachCargo(IteratorFunction, ...) +

    Iterate the DATABASE and call an iterator function for each CARGO, providing the CARGO object to the function and optional parameters.

    DATABASE:New()

    Creates a new DATABASE object, building a set of units belonging to a coalitions, categories, countries, types or with defined prefix names.

    +
    DATABASE:OnEventDeleteCargo(EventData) +

    Handles the OnEventDeleteCargo.

    +
    DATABASE:OnEventNewCargo(EventData) +

    Handles the OnEventNewCargo event.

    EVENT.ClassName +
    EVENT:CreateEventDeleteCargo(Cargo) +

    Creation of a Cargo Deletion Event.

    +
    EVENT:CreateEventNewCargo(Cargo) +

    Creation of a New Cargo Event.

    + + + + + + + + + + + + @@ -766,6 +797,12 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    + + + + @@ -912,6 +949,50 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    + + +
    +
    + + +EVENT:CreateEventDeleteCargo(Cargo) + +
    +
    + +

    Creation of a Cargo Deletion Event.

    + +

    Parameter

    + +
    +
    +
    +
    + + +EVENT:CreateEventNewCargo(Cargo) + +
    +
    + +

    Creation of a New Cargo Event.

    + +

    Parameter

    +
    @@ -1586,6 +1667,34 @@ Note that at the beginning of each field description, there is an indication whi
    + + +EVENTDATA.Cargo + +
    +
    + + + +
    +
    +
    +
    + + + +EVENTDATA.CargoName + +
    +
    + + + +
    +
    +
    +
    + Dcs.DCSUnit#Unit.Category EVENTDATA.IniCategory @@ -2228,6 +2337,20 @@ Note that at the beginning of each field description, there is an indication whi + +
    +
    +
    + + + +EVENTS.DeleteCargo + +
    +
    + + +
    @@ -2340,6 +2463,20 @@ Note that at the beginning of each field description, there is an indication whi + +
    +
    +
    + + + +EVENTS.NewCargo + +
    +
    + + +
    diff --git a/docs/Documentation/Fsm.html b/docs/Documentation/Fsm.html index 5286a9c1e..371f24214 100644 --- a/docs/Documentation/Fsm.html +++ b/docs/Documentation/Fsm.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Group.html b/docs/Documentation/Group.html index c3933dd8c..2d7620f40 100644 --- a/docs/Documentation/Group.html +++ b/docs/Documentation/Group.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -1528,7 +1529,7 @@ The zone to test.

    Return value

    #boolean: -Returns true if the Group is completely within the Zone#ZONE_BASE

    +Returns true if the Group is not within the Zone#ZONE_BASE

    @@ -1555,7 +1556,7 @@ The zone to test.

    Return value

    #boolean: -Returns true if the Group is completely within the Zone#ZONE_BASE

    +Returns true if the Group is partially within the Zone#ZONE_BASE

    diff --git a/docs/Documentation/Identifiable.html b/docs/Documentation/Identifiable.html index 26302176c..79739cbf9 100644 --- a/docs/Documentation/Identifiable.html +++ b/docs/Documentation/Identifiable.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/MOVEMENT.html b/docs/Documentation/MOVEMENT.html index 2ec03bdbd..2c3773f5f 100644 --- a/docs/Documentation/MOVEMENT.html +++ b/docs/Documentation/MOVEMENT.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -191,6 +192,7 @@ on defined intervals (currently every minute).

    + #number MOVEMENT.AliveUnits @@ -199,6 +201,9 @@ on defined intervals (currently every minute).

    + +

    Contains the counter how many units are currently alive

    +
    diff --git a/docs/Documentation/Menu.html b/docs/Documentation/Menu.html index 898011d4b..c09255510 100644 --- a/docs/Documentation/Menu.html +++ b/docs/Documentation/Menu.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Message.html b/docs/Documentation/Message.html index db044781f..e2a7642c8 100644 --- a/docs/Documentation/Message.html +++ b/docs/Documentation/Message.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/MissileTrainer.html b/docs/Documentation/MissileTrainer.html index 028f28dff..da77a2948 100644 --- a/docs/Documentation/MissileTrainer.html +++ b/docs/Documentation/MissileTrainer.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Mission.html b/docs/Documentation/Mission.html index bb21a844f..dfc09bc46 100644 --- a/docs/Documentation/Mission.html +++ b/docs/Documentation/Mission.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Object.html b/docs/Documentation/Object.html index cb8608218..3f7299c86 100644 --- a/docs/Documentation/Object.html +++ b/docs/Documentation/Object.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Point.html b/docs/Documentation/Point.html index 2f03970b6..add1d6996 100644 --- a/docs/Documentation/Point.html +++ b/docs/Documentation/Point.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Positionable.html b/docs/Documentation/Positionable.html index 94f700b92..178f980de 100644 --- a/docs/Documentation/Positionable.html +++ b/docs/Documentation/Positionable.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Process_JTAC.html b/docs/Documentation/Process_JTAC.html index 92c909e8f..11d6329e6 100644 --- a/docs/Documentation/Process_JTAC.html +++ b/docs/Documentation/Process_JTAC.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Process_Pickup.html b/docs/Documentation/Process_Pickup.html index a031bed16..36f9db817 100644 --- a/docs/Documentation/Process_Pickup.html +++ b/docs/Documentation/Process_Pickup.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Radio.html b/docs/Documentation/Radio.html index 3b47dc1f1..0b4642d0f 100644 --- a/docs/Documentation/Radio.html +++ b/docs/Documentation/Radio.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Route.html b/docs/Documentation/Route.html index 8d2ec52ea..1ef383573 100644 --- a/docs/Documentation/Route.html +++ b/docs/Documentation/Route.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Scenery.html b/docs/Documentation/Scenery.html index 84704e530..40fabb2c9 100644 --- a/docs/Documentation/Scenery.html +++ b/docs/Documentation/Scenery.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/ScheduleDispatcher.html b/docs/Documentation/ScheduleDispatcher.html index 887ea6292..b6b78ec9d 100644 --- a/docs/Documentation/ScheduleDispatcher.html +++ b/docs/Documentation/ScheduleDispatcher.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Scheduler.html b/docs/Documentation/Scheduler.html index b8e42d2bb..c1908a711 100644 --- a/docs/Documentation/Scheduler.html +++ b/docs/Documentation/Scheduler.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Scoring.html b/docs/Documentation/Scoring.html index 0d635d4ef..14fa802da 100644 --- a/docs/Documentation/Scoring.html +++ b/docs/Documentation/Scoring.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Sead.html b/docs/Documentation/Sead.html index 12a877b80..08f2cf461 100644 --- a/docs/Documentation/Sead.html +++ b/docs/Documentation/Sead.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Set.html b/docs/Documentation/Set.html index 4c542f663..7a31dc2e8 100644 --- a/docs/Documentation/Set.html +++ b/docs/Documentation/Set.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -143,6 +144,28 @@
    + + + + @@ -455,6 +478,106 @@ + +
    EVENTDATA.Cargo + +
    EVENTDATA.CargoName + +
    EVENTDATA.IniCategory

    (UNIT) The category of the initiator.

    @@ -718,6 +743,12 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    EVENTS.Dead +
    EVENTS.DeleteCargo +
    EVENTS.MissionStart +
    EVENTS.NewCargo +

    1) SET_BASE class, extends Base#BASE

    The Set#SET_BASE class defines the core functions that define a collection of objects.

    +
    SET_CARGO +

    SET_CARGO class, extends Set#SET_BASE

    + +

    Mission designers can use the Set#SET_CARGO class to build sets of cargos optionally belonging to certain:

    + +
      +
    • Coalitions
    • +
    • Types
    • +
    • Name or Prefix
    • +
    + +

    SET_CARGO constructor

    + +

    Create a new SET_CARGO object with the SET_CARGO.New method:

    + +
    SET_BASE:_Find(ObjectName)

    Finds an Base#BASE object based on the object Name.

    +
    + +

    Type SET_CARGO

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    SET_CARGO:AddCargosByName(AddCargoNames) +

    Add CARGOs to SET_CARGO.

    +
    SET_CARGO:AddInDatabase(Event) +

    Handles the Database to check on an event (birth) that the Object was added in the Database.

    +
    SET_CARGO:FilterCoalitions(Coalitions) +

    Builds a set of cargos of coalitions.

    +
    SET_CARGO:FilterCountries(Countries) +

    Builds a set of cargos of defined countries.

    +
    SET_CARGO:FilterPrefixes(Prefixes) +

    Builds a set of cargos of defined cargo prefixes.

    +
    SET_CARGO:FilterStart() +

    Starts the filtering.

    +
    SET_CARGO:FilterTypes(Types) +

    Builds a set of cargos of defined cargo types.

    +
    SET_CARGO:FindCargo(CargoName) +

    Finds a Cargo based on the Cargo Name.

    +
    SET_CARGO:FindInDatabase(Event) +

    Handles the Database to check on any event that Object exists in the Database.

    +
    SET_CARGO:FindNearestCargoFromPointVec2(PointVec2) +

    Iterate the SET_CARGO while identifying the nearest Cargo#CARGO from a Point#POINT_VEC2.

    +
    SET_CARGO:ForEachCargo(IteratorFunction, ...) +

    Iterate the SET_CARGO and call an interator function for each CARGO, providing the CARGO and optional parameters.

    +
    SET_CARGO:IsIncludeObject(MCargo) + +
    SET_CARGO:New() +

    Creates a new SET_CARGO object, building a set of cargos belonging to a coalitions and categories.

    +
    SET_CARGO:OnEventDeleteCargo(EventData) +

    Handles the OnDead or OnCrash event for alive units set.

    +
    SET_CARGO:OnEventNewCargo(EventData) +

    Handles the OnEventNewCargo event for the Set.

    +
    SET_CARGO:RemoveCargosByName(RemoveCargoNames) +

    Remove CARGOs from SET_CARGO.

    @@ -923,6 +1046,72 @@ The default "time interval" is after 0.001 seconds.

    You can set the "yield interval", and the "time interval". (See above).

    + + +
    +
    + + #SET_CARGO + +SET_CARGO + +
    +
    + +

    SET_CARGO class, extends Set#SET_BASE

    + +

    Mission designers can use the Set#SET_CARGO class to build sets of cargos optionally belonging to certain:

    + + + +

    SET_CARGO constructor

    + +

    Create a new SET_CARGO object with the SET_CARGO.New method:

    + + + + +

    +

    Add or Remove CARGOs from SET_CARGO

    + +

    CARGOs can be added and removed using the Set#SET_CARGO.AddCargosByName and Set#SET_CARGO.RemoveCargosByName respectively. +These methods take a single CARGO name or an array of CARGO names to be added or removed from SET_CARGO.

    + +

    SET_CARGO filter criteria

    + +

    You can set filter criteria to automatically maintain the SET_CARGO contents. +Filter criteria are defined by:

    + + + +

    Once the filter criteria have been set for the SET_CARGO, you can start filtering using:

    + + + +

    SET_CARGO iterators

    + +

    Once the filters have been defined and the SETCARGO has been built, you can iterate the SETCARGO with the available iterator methods. +The iterator methods will walk the SETCARGO set, and call for each cargo within the set a function that you provide. +The following iterator methods are currently available within the SETCARGO:

    + + + +
    @@ -2189,6 +2378,454 @@ self

    Core.Base#BASE: The Object found.

    + +
    + +

    Type SET_CARGO

    +

    Field(s)

    +
    +
    + + +SET_CARGO:AddCargosByName(AddCargoNames) + +
    +
    + +

    Add CARGOs to SET_CARGO.

    + +

    Parameter

    + +

    Return value

    + + +

    self

    + +
    +
    +
    +
    + + +SET_CARGO:AddInDatabase(Event) + +
    +
    + +

    Handles the Database to check on an event (birth) that the Object was added in the Database.

    + + +

    This is required, because sometimes the DATABASE birth event gets called later than the SETBASE birth event!

    + +

    Parameter

    + +

    Return values

    +
      +
    1. + +

      #string: +The name of the CARGO

      + +
    2. +
    3. + +

      #table: +The CARGO

      + +
    4. +
    +
    +
    +
    +
    + + +SET_CARGO:FilterCoalitions(Coalitions) + +
    +
    + +

    Builds a set of cargos of coalitions.

    + + +

    Possible current coalitions are red, blue and neutral.

    + +

    Parameter

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:FilterCountries(Countries) + +
    +
    + +

    Builds a set of cargos of defined countries.

    + + +

    Possible current countries are those known within DCS world.

    + +

    Parameter

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:FilterPrefixes(Prefixes) + +
    +
    + +

    Builds a set of cargos of defined cargo prefixes.

    + + +

    All the cargos starting with the given prefixes will be included within the set.

    + +

    Parameter

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:FilterStart() + +
    +
    + +

    Starts the filtering.

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:FilterTypes(Types) + +
    +
    + +

    Builds a set of cargos of defined cargo types.

    + + +

    Possible current types are those types known within DCS world.

    + +

    Parameter

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:FindCargo(CargoName) + +
    +
    + +

    Finds a Cargo based on the Cargo Name.

    + +

    Parameter

    + +

    Return value

    + +

    Wrapper.Cargo#CARGO: +The found Cargo.

    + +
    +
    +
    +
    + + +SET_CARGO:FindInDatabase(Event) + +
    +
    + +

    Handles the Database to check on any event that Object exists in the Database.

    + + +

    This is required, because sometimes the DATABASE event gets called later than the SETBASE event or vise versa!

    + +

    Parameter

    + +

    Return values

    +
      +
    1. + +

      #string: +The name of the CARGO

      + +
    2. +
    3. + +

      #table: +The CARGO

      + +
    4. +
    +
    +
    +
    +
    + + +SET_CARGO:FindNearestCargoFromPointVec2(PointVec2) + +
    +
    + +

    Iterate the SET_CARGO while identifying the nearest Cargo#CARGO from a Point#POINT_VEC2.

    + +

    Parameter

    + +

    Return value

    + +

    Wrapper.Cargo#CARGO: +The closest Cargo#CARGO.

    + +
    +
    +
    +
    + + +SET_CARGO:ForEachCargo(IteratorFunction, ...) + +
    +
    + +

    Iterate the SET_CARGO and call an interator function for each CARGO, providing the CARGO and optional parameters.

    + +

    Parameters

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:IsIncludeObject(MCargo) + +
    +
    + + + +

    Parameter

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +
    +
    +
    +
    + + +SET_CARGO:New() + +
    +
    + +

    Creates a new SET_CARGO object, building a set of cargos belonging to a coalitions and categories.

    + +

    Return value

    + +

    #SET_CARGO: +self

    + +

    Usage:

    +
    -- Define a new SET_CARGO Object. The DatabaseSet will contain a reference to all Cargos.
    +DatabaseSet = SET_CARGO:New()
    + +
    +
    +
    +
    + + +SET_CARGO:OnEventDeleteCargo(EventData) + +
    +
    + +

    Handles the OnDead or OnCrash event for alive units set.

    + +

    Parameter

    + +
    +
    +
    +
    + + +SET_CARGO:OnEventNewCargo(EventData) + +
    +
    + +

    Handles the OnEventNewCargo event for the Set.

    + +

    Parameter

    + +
    +
    +
    +
    + + +SET_CARGO:RemoveCargosByName(RemoveCargoNames) + +
    +
    + +

    Remove CARGOs from SET_CARGO.

    + +

    Parameter

    + +

    Return value

    + + +

    self

    +
    diff --git a/docs/Documentation/Smoke.html b/docs/Documentation/Smoke.html index f91a5703f..db3f97156 100644 --- a/docs/Documentation/Smoke.html +++ b/docs/Documentation/Smoke.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Spawn.html b/docs/Documentation/Spawn.html index 4a25605f0..d0b095a1d 100644 --- a/docs/Documentation/Spawn.html +++ b/docs/Documentation/Spawn.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -872,6 +873,12 @@ and any spaces before and after the resulting name are removed.

    SPAWN:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle) + + + + SPAWN.uncontrolled + + @@ -1859,9 +1866,6 @@ The group that was spawned. You can use this group for further actions.

    - -

    Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.

    -
    @@ -2332,9 +2336,6 @@ when nothing was spawned.

    - -

    By default, no InitLimit

    -
    @@ -2370,7 +2371,7 @@ when nothing was spawned.

    - #number + SPAWN.SpawnMaxGroups @@ -2387,7 +2388,7 @@ when nothing was spawned.

    - #number + SPAWN.SpawnMaxUnitsAlive @@ -2705,7 +2706,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 )
    - #boolean + SPAWN.SpawnUnControlled @@ -2729,7 +2730,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 ) -

    Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.

    +

    When the first Spawn executes, all the Groups need to be made visible before start.

    @@ -3295,6 +3296,20 @@ True = Continue Scheduler

    + +
    +
    +
    + + + +SPAWN.uncontrolled + +
    +
    + + +
    diff --git a/docs/Documentation/Static.html b/docs/Documentation/Static.html index ff176e054..2aeeae3c8 100644 --- a/docs/Documentation/Static.html +++ b/docs/Documentation/Static.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Task.html b/docs/Documentation/Task.html index f2a503a07..0cc3c69d0 100644 --- a/docs/Documentation/Task.html +++ b/docs/Documentation/Task.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -73,54 +74,12 @@

    Module Task

    -

    This module contains the TASK class.

    +

    Tasking -- This module contains the TASK class.

    -

    1) #TASK class, extends Base#BASE

    -

    1.1) The #TASK class implements the methods for task orchestration within MOOSE.

    -

    The class provides a couple of methods to:

    +
    - - -

    1.2) Set and enquire task status (beyond the task state machine processing).

    -

    A task needs to implement as a minimum the following task states:

    - -
      -
    • Success: Expresses the successful execution and finalization of the task.
    • -
    • Failed: Expresses the failure of a task.
    • -
    • Planned: Expresses that the task is created, but not yet in execution and is not assigned yet.
    • -
    • Assigned: Expresses that the task is assigned to a Group of players, and that the task is in execution mode.
    • -
    - -

    A task may also implement the following task states:

    - -
      -
    • Rejected: Expresses that the task is rejected by a player, who was requested to accept the task.
    • -
    • Cancelled: Expresses that the task is cancelled by HQ or through a logical situation where a cancellation of the task is required.
    • -
    - -

    A task can implement more statusses than the ones outlined above. Please consult the documentation of the specific tasks to understand the different status modelled.

    - -

    The status of tasks can be set by the methods State followed by the task status. An example is StateAssigned(). -The status of tasks can be enquired by the methods IsState followed by the task status name. An example is if IsStateAssigned() then.

    - -

    1.3) Add scoring when reaching a certain task status:

    -

    Upon reaching a certain task status in a task, additional scoring can be given. If the Mission has a scoring system attached, the scores will be added to the mission scoring. -Use the method TASK.AddScore() to add scores when a status is reached.

    - -

    1.4) Task briefing:

    -

    A task briefing can be given that is shown to the player when he is assigned to the task.


    @@ -132,7 +91,9 @@ Use the method TASK.AddScore() to add scores whe TASK +

    TASK class, extends Base#BASE

    +

    The TASK class implements the methods for task orchestration within MOOSE.

    @@ -166,12 +127,6 @@ Use the method TASK.AddScore() to add scores whe TASK:Cancel()

    FSM Cancel synchronous event function for TASK.

    - - - - TASK.ClassName - - @@ -358,12 +313,6 @@ Use the method TASK.AddScore() to add scores whe TASK:JoinUnit(PlayerUnit, PlayerGroup)

    Add a PlayerUnit to join the Task.

    - - - - TASK.Menu - - @@ -418,24 +367,6 @@ Use the method TASK.AddScore() to add scores whe TASK:OnAfterPlayerDead(PlayerUnit, PlayerName)

    FSM PlayerDead event handler prototype for TASK.

    - - - - TASK.Players - - - - - - TASK.ProcessClasses - - - - - - TASK.Processes - - @@ -478,12 +409,6 @@ Use the method TASK.AddScore() to add scores whe TASK:ReportSummary()

    Create a summary report of the Task.

    - - - - TASK.Scores - - @@ -769,6 +694,57 @@ Use the method TASK.AddScore() to add scores whe
    +

    TASK class, extends Base#BASE

    + +

    The TASK class implements the methods for task orchestration within MOOSE.

    + + + +

    The class provides a couple of methods to:

    + + + +

    1.2) Set and enquire task status (beyond the task state machine processing).

    + +

    A task needs to implement as a minimum the following task states:

    + +
      +
    • Success: Expresses the successful execution and finalization of the task.
    • +
    • Failed: Expresses the failure of a task.
    • +
    • Planned: Expresses that the task is created, but not yet in execution and is not assigned yet.
    • +
    • Assigned: Expresses that the task is assigned to a Group of players, and that the task is in execution mode.
    • +
    + +

    A task may also implement the following task states:

    + +
      +
    • Rejected: Expresses that the task is rejected by a player, who was requested to accept the task.
    • +
    • Cancelled: Expresses that the task is cancelled by HQ or through a logical situation where a cancellation of the task is required.
    • +
    + +

    A task can implement more statusses than the ones outlined above. Please consult the documentation of the specific tasks to understand the different status modelled.

    + +

    The status of tasks can be set by the methods State followed by the task status. An example is StateAssigned(). +The status of tasks can be enquired by the methods IsState followed by the task status name. An example is if IsStateAssigned() then.

    + +

    1.3) Add scoring when reaching a certain task status:

    + +

    Upon reaching a certain task status in a task, additional scoring can be given. If the Mission has a scoring system attached, the scores will be added to the mission scoring. +Use the method TASK.AddScore() to add scores when a status is reached.

    + +

    1.4) Task briefing:

    + +

    A task briefing can be given that is shown to the player when he is assigned to the task.

    @@ -776,10 +752,7 @@ Use the method TASK.AddScore() to add scores whe

    Type Task

    Type TASK

    - -

    The TASK class

    - -

    Field(s)

    +

    Field(s)

    @@ -893,20 +866,6 @@ self

    Use this event to Cancel the Task.

    - -
    -
    -
    - - #string - -TASK.ClassName - -
    -
    - - -
    @@ -1498,20 +1457,6 @@ The GROUP of the player joining the Mission.

    #boolean: true if Unit is part of the Task.

    - -
    -
    -
    - - - -TASK.Menu - -
    -
    - - -
    @@ -1742,47 +1687,6 @@ The name of the Player.

    - -
    -
    -
    - - -TASK.Players - -
    -
    - - - -
    -
    -
    -
    - - - -TASK.ProcessClasses - -
    -
    - - - -
    -
    -
    -
    - - - -TASK.Processes - -
    -
    - - -
    @@ -1955,20 +1859,6 @@ self

    #string:

    - -
    -
    -
    - - - -TASK.Scores - -
    -
    - - -
    diff --git a/docs/Documentation/Task_A2G.html b/docs/Documentation/Task_A2G.html index 46c91e395..c4f9f3077 100644 --- a/docs/Documentation/Task_A2G.html +++ b/docs/Documentation/Task_A2G.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -326,7 +327,7 @@ The TASK_A2G is implemented using a Stat - TASK_SEAD:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) + TASK_SEAD:New(Mission, SetGroup, TaskName, TargetSetUnit)

    Instantiates a new TASK_SEAD.

    @@ -1068,7 +1069,7 @@ self

    -TASK_SEAD:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) +TASK_SEAD:New(Mission, SetGroup, TaskName, TargetSetUnit)
    @@ -1096,25 +1097,7 @@ The name of the Task.

  • -

    Set#SET_UNIT UnitSetTargets :

    - -
  • -
  • - -

    #number TargetDistance : -The distance to Target when the Player is considered to have "arrived" at the engagement range.

    - -
  • -
  • - -

    Core.Zone#ZONE_BASE TargetZone : -The target zone, if known. -If the TargetZone parameter is specified, the player will be routed to the center of the zone where all the targets are assumed to be.

    - -
  • -
  • - -

    TargetSetUnit :

    +

    Set#SET_UNIT TargetSetUnit :

  • diff --git a/docs/Documentation/Task_A2G_Dispatcher.html b/docs/Documentation/Task_A2G_Dispatcher.html index d3f800748..92d0cee18 100644 --- a/docs/Documentation/Task_A2G_Dispatcher.html +++ b/docs/Documentation/Task_A2G_Dispatcher.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Task_CARGO.html b/docs/Documentation/Task_CARGO.html new file mode 100644 index 000000000..621b65667 --- /dev/null +++ b/docs/Documentation/Task_CARGO.html @@ -0,0 +1,826 @@ + + + + + + +
    +
    + +
    +
    +
    +
    + +
    +

    Module Task_CARGO

    + +

    Tasking (Release 2.1) -- The TASK_CARGO models tasks for players to transport Cargo.

    + + + +

    Banner Image

    + +
    + +

    Cargo are units or cargo objects within DCS world that allow to be transported or sling loaded by other units. +The CARGO class, as part of the moose core, is able to Board, Load, UnBoard and UnLoad from Carrier units. +This collection of classes in this module define tasks for human players to handle cargo objects. +Cargo can be transported, picked-up, deployed and sling-loaded from and to other places.

    + +

    The following classes are important to consider:

    + +
      +
    • #TASKCARGOTRANSPORT: Defines a task for a human player to transport a set of cargo between various zones.
    • +
    + +

    ==

    + +

    API CHANGE HISTORY

    + +

    The underlying change log documents the API changes. Please read this carefully. The following notation is used:

    + +
      +
    • Added parts are expressed in bold type face.
    • +
    • Removed parts are expressed in italic type face.
    • +
    + +

    Hereby the change log:

    + +

    2017-03-09: Revised version.

    + +
    + +

    AUTHORS and CONTRIBUTIONS

    + +

    Contributions:

    + +

    Authors:

    + +
      +
    • FlightControl: Concept, Design & Programming. +
    • +
    + +

    Global(s)

    + + + + + + + + + +
    TASK_CARGO +

    TASK_CARGO class, extends Task#TASK

    + +

    The TASK_CARGO class defines Cargo transport tasks, +based on the tasking capabilities defined in Task#TASK.

    +
    TASK_CARGO_TRANSPORT + +
    +

    Type FSM_PROCESS

    + + + + + + + + + +
    FSM_PROCESS.Cargo + +
    FSM_PROCESS.DeployZone + +
    + +

    Type TASK_CARGO

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TASK_CARGO:AddDeployZone(DeployZone, TaskUnit) + +
    TASK_CARGO.DeployZones + +
    TASK_CARGO:GetPlannedMenuText() + +
    TASK_CARGO:GetTargetZone(TaskUnit) + +
    TASK_CARGO:New(Mission, SetGroup, TaskName, SetCargo, TaskType) +

    Instantiates a new TASK_CARGO.

    +
    TASK_CARGO:RemoveDeployZone(DeployZone, TaskUnit) + +
    TASK_CARGO.SetCargo + +
    TASK_CARGO:SetCargoPickup(Cargo, TaskUnit) + +
    TASK_CARGO:SetDeployZone(DeployZone, TaskUnit) + +
    TASK_CARGO:SetDeployZones(@, TaskUnit, DeployZones) + +
    TASK_CARGO:SetPenaltyOnFailed(Text, Penalty, TaskUnit) +

    Set a penalty when the A2G attack has failed.

    +
    TASK_CARGO:SetScoreOnDestroy(Text, Score, TaskUnit) +

    Set a score when a target in scope of the A2G attack, has been destroyed .

    +
    TASK_CARGO:SetScoreOnSuccess(Text, Score, TaskUnit) +

    Set a score when all the targets in scope of the A2G attack, have been destroyed.

    +
    TASK_CARGO.TaskType + +
    + +

    Type TASK_CARGO_TRANSPORT

    + + + + + + + + + +
    TASK_CARGO_TRANSPORT.ClassName + +
    TASK_CARGO_TRANSPORT:New(Mission, SetGroup, TaskName, SetCargo) +

    Instantiates a new TASKCARGOTRANSPORT.

    +
    + +

    Global(s)

    +
    +
    + + #TASK_CARGO + +TASK_CARGO + +
    +
    + +

    TASK_CARGO class, extends Task#TASK

    + +

    The TASK_CARGO class defines Cargo transport tasks, +based on the tasking capabilities defined in Task#TASK.

    + + +

    The TASK_CARGO is implemented using a Statemachine#FSM_TASK, and has the following statuses:

    + +
      +
    • None: Start of the process.
    • +
    • Planned: The cargo task is planned.
    • +
    • Assigned: The cargo task is assigned to a Group#GROUP.
    • +
    • Success: The cargo task is successfully completed.
    • +
    • Failed: The cargo task has failed. This will happen if the player exists the task early, without communicating a possible cancellation to HQ.
    • +
    + +

    1.1) Set the scoring of achievements in a cargo task.

    + +

    Scoring or penalties can be given in the following circumstances:

    + +
    + + +
    +
    +
    +
    + + #TASK_CARGO_TRANSPORT + +TASK_CARGO_TRANSPORT + +
    +
    + + + +
    +
    +

    Type Task_CARGO

    + +

    Type FSM_PROCESS

    +

    Field(s)

    +
    +
    + + + +FSM_PROCESS.Cargo + +
    +
    + + + +
    +
    +
    +
    + + + +FSM_PROCESS.DeployZone + +
    +
    + + + +
    +
    + +

    Type TASK_CARGO

    +

    Field(s)

    +
    +
    + + +TASK_CARGO:AddDeployZone(DeployZone, TaskUnit) + +
    +
    + + + +

    Parameters

    + +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + + +TASK_CARGO.DeployZones + +
    +
    + + + + +

    setmetatable( {}, { __mode = "v" } ) -- weak table on value

    + +
    +
    +
    +
    + + +TASK_CARGO:GetPlannedMenuText() + +
    +
    + + + +
    +
    +
    +
    + + +TASK_CARGO:GetTargetZone(TaskUnit) + +
    +
    + + + +

    Parameter

    + +

    Return value

    + +

    Core.Zone#ZONE_BASE: +The Zone object where the Target is located on the map.

    + +
    +
    +
    +
    + + +TASK_CARGO:New(Mission, SetGroup, TaskName, SetCargo, TaskType) + +
    +
    + +

    Instantiates a new TASK_CARGO.

    + +

    Parameters

    +
      +
    • + +

      Tasking.Mission#MISSION Mission :

      + +
    • +
    • + +

      Set#SET_GROUP SetGroup : +The set of groups for which the Task can be assigned.

      + +
    • +
    • + +

      #string TaskName : +The name of the Task.

      + +
    • +
    • + +

      Core.Set#SET_CARGO SetCargo : +The scope of the cargo to be transported.

      + +
    • +
    • + +

      #string TaskType : +The type of Cargo task.

      + +
    • +
    +

    Return value

    + +

    #TASK_CARGO: +self

    + +
    +
    +
    +
    + + +TASK_CARGO:RemoveDeployZone(DeployZone, TaskUnit) + +
    +
    + + + +

    Parameters

    + +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + + +TASK_CARGO.SetCargo + +
    +
    + + + +
    +
    +
    +
    + + +TASK_CARGO:SetCargoPickup(Cargo, TaskUnit) + +
    +
    + + + +

    Parameters

    + +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + +TASK_CARGO:SetDeployZone(DeployZone, TaskUnit) + +
    +
    + + + +

    Parameters

    + +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + +TASK_CARGO:SetDeployZones(@, TaskUnit, DeployZones) + +
    +
    + + + +

    Parameters

    +
      +
    • + +

      @ : +ist DeployZones

      + +
    • +
    • + +

      Wrapper.Unit#UNIT TaskUnit :

      + +
    • +
    • + +

      DeployZones :

      + +
    • +
    +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + +TASK_CARGO:SetPenaltyOnFailed(Text, Penalty, TaskUnit) + +
    +
    + +

    Set a penalty when the A2G attack has failed.

    + +

    Parameters

    +
      +
    • + +

      #string Text : +The text to display to the player, when the A2G attack has failed.

      + +
    • +
    • + +

      #number Penalty : +The penalty in points.

      + +
    • +
    • + +

      Wrapper.Unit#UNIT TaskUnit :

      + +
    • +
    +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + +TASK_CARGO:SetScoreOnDestroy(Text, Score, TaskUnit) + +
    +
    + +

    Set a score when a target in scope of the A2G attack, has been destroyed .

    + +

    Parameters

    +
      +
    • + +

      #string Text : +The text to display to the player, when the target has been destroyed.

      + +
    • +
    • + +

      #number Score : +The score in points.

      + +
    • +
    • + +

      Wrapper.Unit#UNIT TaskUnit :

      + +
    • +
    +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + +TASK_CARGO:SetScoreOnSuccess(Text, Score, TaskUnit) + +
    +
    + +

    Set a score when all the targets in scope of the A2G attack, have been destroyed.

    + +

    Parameters

    +
      +
    • + +

      #string Text : +The text to display to the player, when all targets hav been destroyed.

      + +
    • +
    • + +

      #number Score : +The score in points.

      + +
    • +
    • + +

      Wrapper.Unit#UNIT TaskUnit :

      + +
    • +
    +

    Return value

    + +

    #TASK_CARGO:

    + + +
    +
    +
    +
    + + + +TASK_CARGO.TaskType + +
    +
    + + + +
    +
    + +

    Type TASK_CARGO_TRANSPORT

    + +

    The TASKCARGOTRANSPORT class

    + +

    Field(s)

    +
    +
    + + #string + +TASK_CARGO_TRANSPORT.ClassName + +
    +
    + + + +
    +
    +
    +
    + + +TASK_CARGO_TRANSPORT:New(Mission, SetGroup, TaskName, SetCargo) + +
    +
    + +

    Instantiates a new TASKCARGOTRANSPORT.

    + +

    Parameters

    + +

    Return value

    + +

    #TASKCARGOTRANSPORT: +self

    + +
    +
    + +
    + +
    + + diff --git a/docs/Documentation/Task_PICKUP.html b/docs/Documentation/Task_PICKUP.html index fe83f60db..08b188774 100644 --- a/docs/Documentation/Task_PICKUP.html +++ b/docs/Documentation/Task_PICKUP.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Unit.html b/docs/Documentation/Unit.html index 097aa6cf3..b3d712e3b 100644 --- a/docs/Documentation/Unit.html +++ b/docs/Documentation/Unit.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Utils.html b/docs/Documentation/Utils.html index 59585ad25..b9a22a874 100644 --- a/docs/Documentation/Utils.html +++ b/docs/Documentation/Utils.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Documentation/Zone.html b/docs/Documentation/Zone.html index 86c4fee62..9fbe8dd88 100644 --- a/docs/Documentation/Zone.html +++ b/docs/Documentation/Zone.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -154,7 +155,7 @@ ZONE -

    3) ZONE class, extends Zone#ZONE_RADIUS

    +

    ZONE class, extends Zone#ZONE_RADIUS

    The ZONE class, defined by the zone name as defined within the Mission Editor.

    @@ -162,7 +163,7 @@ ZONE_BASE -

    1) ZONE_BASE class, extends Base#BASE

    +

    ZONE_BASE class, extends Base#BASE

    This class is an abstract BASE class for derived classes, and is not meant to be instantiated.

    @@ -170,7 +171,7 @@ ZONE_GROUP -

    5) #ZONE_GROUP class, extends Zone#ZONE_RADIUS

    +

    ZONE_GROUP class, extends Zone#ZONE_RADIUS

    The ZONE_GROUP class defines by a zone around a Group#GROUP with a radius.

    @@ -178,7 +179,7 @@ ZONE_POLYGON -

    7) ZONE_POLYGON class, extends Zone#ZONEPOLYGONBASE

    +

    ZONE_POLYGON class, extends Zone#ZONEPOLYGONBASE

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

    @@ -186,7 +187,7 @@ ZONE_POLYGON_BASE -

    6) ZONEPOLYGONBASE class, extends Zone#ZONE_BASE

    +

    ZONEPOLYGONBASE class, extends Zone#ZONE_BASE

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

    @@ -194,7 +195,7 @@ ZONE_RADIUS -

    2) Zone#ZONE_RADIUS class, extends Zone#ZONE_BASE

    +

    ZONE_RADIUS class, extends Zone#ZONE_BASE

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

    @@ -202,7 +203,7 @@ ZONE_UNIT -

    4) #ZONE_UNIT class, extends Zone#ZONE_RADIUS

    +

    ZONE_UNIT class, extends Zone#ZONE_RADIUS

    The ZONE_UNIT class defined by a zone around a Unit#UNIT with a radius.

    @@ -290,18 +291,30 @@ ZONE_BASE:GetZoneProbability()

    Get the randomization probability of a zone to be selected.

    + + + + ZONE_BASE:IsPointVec2InZone(PointVec2) + +

    Returns if a PointVec2 is within the zone.

    + + + + ZONE_BASE:IsPointVec3InZone(PointVec3) + +

    Returns if a PointVec3 is within the zone.

    ZONE_BASE:IsVec2InZone(Vec2) -

    Returns if a location is within the zone.

    +

    Returns if a Vec2 is within the zone.

    ZONE_BASE:IsVec3InZone(Vec3) -

    Returns if a point is within the zone.

    +

    Returns if a Vec3 is within the zone.

    @@ -438,6 +451,12 @@ ZONE_POLYGON_BASE:GetRandomVec2()

    Define a random DCSTypes#Vec2 within the zone.

    + + + + ZONE_POLYGON_BASE:GetVec2() + +

    Returns the center location of the polygon.

    @@ -617,15 +636,13 @@
    -

    3) ZONE class, extends Zone#ZONE_RADIUS

    +

    ZONE class, extends Zone#ZONE_RADIUS

    The ZONE class, defined by the zone name as defined within the Mission Editor.

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

    -
    -
    @@ -639,26 +656,26 @@
    -

    1) ZONE_BASE class, extends Base#BASE

    +

    ZONE_BASE class, extends Base#BASE

    This class is an abstract BASE class for derived classes, and is not meant to be instantiated.

    -

    1.1) Each zone has a name:

    +

    Each zone has a name:

    -

    1.2) Each zone implements two polymorphic functions defined in Zone#ZONE_BASE:

    +

    Each zone implements two polymorphic functions defined in Zone#ZONE_BASE:

    -

    1.3) A zone has a probability factor that can be set to randomize a selection between zones:

    +

    A zone has a probability factor that can be set to randomize a selection between zones:

    • ZONE_BASE.SetRandomizeProbability(): Set the randomization probability of a zone to be selected, taking a value between 0 and 1 ( 0 = 0%, 1 = 100% )
    • @@ -666,27 +683,26 @@
    • ZONE_BASE.GetZoneMaybe(): Get the zone taking into account the randomization probability. nil is returned if this zone is not a candidate.
    -

    1.4) A zone manages Vectors:

    +

    A zone manages Vectors:

    -

    1.5) A zone has a bounding square:

    +

    A zone has a bounding square:

    -

    1.6) A zone can be marked:

    +

    A zone can be marked:

    -
    @@ -700,7 +716,7 @@
    -

    5) #ZONE_GROUP class, extends Zone#ZONE_RADIUS

    +

    ZONE_GROUP class, extends Zone#ZONE_RADIUS

    The ZONE_GROUP class defines by a zone around a Group#GROUP with a radius.

    @@ -708,8 +724,6 @@

    The current leader of the group defines the center of the zone. This class implements the inherited functions from Zone#ZONE_RADIUS taking into account the own zone format and properties.

    -
    -
    @@ -723,15 +737,13 @@ This class implements the inherited functions from Zone#ZONEPOLYGONBASE +

    ZONE_POLYGON class, extends Zone#ZONEPOLYGONBASE

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

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

    -
    - @@ -745,7 +757,7 @@ This class implements the inherited functions from Zone#ZONE_BASE +

    ZONEPOLYGONBASE class, extends Zone#ZONE_BASE

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

    @@ -753,7 +765,7 @@ This class implements the inherited functions from Zone#ZONE_RADIUS taking into account the own zone format and properties. This class is an abstract BASE class for derived classes, and is not meant to be instantiated.

    -

    6.1) Zone point randomization

    +

    Zone point randomization

    Various functions exist to find random points within the zone.

    @@ -763,8 +775,6 @@ This class is an abstract BASE class for derived classes, and is not meant to be
  • ZONEPOLYGONBASE.GetRandomPointVec3(): Return a Point#POINT_VEC3 object representing a random 3D point at landheight within the zone.
  • -
    - @@ -778,27 +788,27 @@ This class is an abstract BASE class for derived classes, and is not meant to be
    -

    2) Zone#ZONE_RADIUS class, extends Zone#ZONE_BASE

    +

    ZONE_RADIUS class, extends Zone#ZONE_BASE

    The ZONE_RADIUS 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.

    -

    2.1) Zone#ZONE_RADIUS constructor

    +

    ZONE_RADIUS constructor

    -

    2.2) Manage the radius of the zone

    +

    Manage the radius of the zone

    -

    2.3) Manage the location of the zone

    +

    Manage the location of the zone

    -

    2.4) Zone point randomization

    +

    Zone point randomization

    Various functions exist to find random points within the zone.

    @@ -816,8 +826,6 @@ This class is an abstract BASE class for derived classes, and is not meant to be
  • ZONE_RADIUS.GetRandomPointVec3(): Gets a Point#POINT_VEC3 object representing a random 3D point in the zone. Note that the height of the point is at landheight.
  • -
    -
    @@ -831,15 +839,13 @@ This class is an abstract BASE class for derived classes, and is not meant to be
    -

    4) #ZONE_UNIT class, extends Zone#ZONE_RADIUS

    +

    ZONE_UNIT class, extends Zone#ZONE_RADIUS

    The ZONE_UNIT class defined by a zone around a Unit#UNIT with a radius.

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

    -
    -
    @@ -1131,27 +1137,81 @@ A value between 0 and 1. 0 = 0% and 1 = 100% probability.

    - -ZONE_BASE:IsVec2InZone(Vec2) + +ZONE_BASE:IsPointVec2InZone(PointVec2)
    -

    Returns if a location is within the zone.

    +

    Returns if a PointVec2 is within the zone.

    Parameter

    Return value

    #boolean: -true if the location is within the zone.

    +true if the PointVec2 is within the zone.

    + +
    +
    +
    +
    + + +ZONE_BASE:IsPointVec3InZone(PointVec3) + +
    +
    + +

    Returns if a PointVec3 is within the zone.

    + +

    Parameter

    + +

    Return value

    + +

    #boolean: +true if the PointVec3 is within the zone.

    + +
    +
    +
    +
    + + +ZONE_BASE:IsVec2InZone(Vec2) + +
    +
    + +

    Returns if a Vec2 is within the zone.

    + +

    Parameter

    + +

    Return value

    + +

    #boolean: +true if the Vec2 is within the zone.

    @@ -1164,7 +1224,7 @@ true if the location is within the zone.

    -

    Returns if a point is within the zone.

    +

    Returns if a Vec3 is within the zone.

    Parameter

    @@ -1597,6 +1657,24 @@ The Vec2 coordinate.

    + +ZONE_POLYGON_BASE:GetVec2() + +
    +
    + +

    Returns the center location of the polygon.

    + +

    Return value

    + +

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

    + +
    +
    +
    +
    + ZONE_POLYGON_BASE:IsVec2InZone(Vec2) @@ -2163,10 +2241,7 @@ self

    Type ZONE_UNIT

    - -

    The ZONE_UNIT class defined by a zone around a Unit#UNIT with a radius.

    - -

    Field(s)

    +

    Field(s)

    diff --git a/docs/Documentation/index.html b/docs/Documentation/index.html index 2c422f83e..85574f96d 100644 --- a/docs/Documentation/index.html +++ b/docs/Documentation/index.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • @@ -392,7 +393,7 @@ and creates a CSV file logging the scoring events and results for use at team or Task -

    This module contains the TASK class.

    +

    Tasking -- This module contains the TASK class.

    @@ -405,6 +406,12 @@ and creates a CSV file logging the scoring events and results for use at team or Task_A2G_Dispatcher

    Tasking - The TASKA2GDISPATCHER creates and manages player TASK_A2G tasks based on detected targets.

    + + + + Task_CARGO + +

    Tasking (Release 2.1) -- The TASK_CARGO models tasks for players to transport Cargo.

    diff --git a/docs/Documentation/routines.html b/docs/Documentation/routines.html index c2949d324..25f4c1a33 100644 --- a/docs/Documentation/routines.html +++ b/docs/Documentation/routines.html @@ -63,6 +63,7 @@
  • Task
  • Task_A2G
  • Task_A2G_Dispatcher
  • +
  • Task_CARGO
  • Task_PICKUP
  • Unit
  • Utils
  • diff --git a/docs/Presentations/TASK_CARGO/Dia1.JPG b/docs/Presentations/TASK_CARGO/Dia1.JPG new file mode 100644 index 000000000..e4cab902f Binary files /dev/null and b/docs/Presentations/TASK_CARGO/Dia1.JPG differ