diff --git a/Documentation/AI.AI_Air_Squadron.html b/Documentation/AI.AI_Air_Squadron.html index da6cda728..dc98ca3b5 100644 --- a/Documentation/AI.AI_Air_Squadron.html +++ b/Documentation/AI.AI_Air_Squadron.html @@ -2438,17 +2438,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -
-
- - -AI_AIR_SQUADRON.ResourceCount - - -
@@ -3520,17 +3509,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -
-
- - -AI_AIR_SQUADRON.ResourceCount - - -
diff --git a/Documentation/AI.AI_Cargo_Airplane.html b/Documentation/AI.AI_Cargo_Airplane.html index a1c53577b..94f81d370 100644 --- a/Documentation/AI.AI_Cargo_Airplane.html +++ b/Documentation/AI.AI_Cargo_Airplane.html @@ -2621,6 +2621,17 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Field(s)

+
+
+ + +AI_CARGO_AIRPLANE.Airbase + + + +
+ +
@@ -2676,6 +2687,9 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau + +

Aircraft is on a pickup mission.

+
@@ -4394,6 +4408,17 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Field(s)

+
+
+ + +AI_CARGO_AIRPLANE.Airbase + + + +
+ +
@@ -4449,6 +4474,9 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau + +

Aircraft is on a pickup mission.

+
@@ -5009,6 +5037,17 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Field(s)

+
+
+ + +AI_CARGO_AIRPLANE.Airbase + + + +
+ +
@@ -5064,6 +5103,9 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau + +

Aircraft is on a pickup mission.

+
@@ -6516,6 +6558,17 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Field(s)

+
+
+ + +AI_CARGO_AIRPLANE.Airbase + + + +
+ +
@@ -6571,6 +6624,9 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau + +

Aircraft is on a pickup mission.

+
diff --git a/Documentation/AI.AI_Cargo_Helicopter.html b/Documentation/AI.AI_Cargo_Helicopter.html index f4adecf17..a56dddeeb 100644 --- a/Documentation/AI.AI_Cargo_Helicopter.html +++ b/Documentation/AI.AI_Cargo_Helicopter.html @@ -2786,28 +2786,22 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #number + AI_CARGO_HELICOPTER.landingheight - -

meter

-
- #number + AI_CARGO_HELICOPTER.landingspeed - -

kph

-
@@ -4710,28 +4704,22 @@ Adjust if necessary.
- #number + AI_CARGO_HELICOPTER.landingheight - -

meter

-
- #number + AI_CARGO_HELICOPTER.landingspeed - -

kph

-
@@ -5386,28 +5374,22 @@ Adjust if necessary.
- #number + AI_CARGO_HELICOPTER.landingheight - -

meter

-
- #number + AI_CARGO_HELICOPTER.landingspeed - -

kph

-
@@ -6954,28 +6936,22 @@ Adjust if necessary.
- #number + AI_CARGO_HELICOPTER.landingheight - -

meter

-
- #number + AI_CARGO_HELICOPTER.landingspeed - -

kph

-
diff --git a/Documentation/Cargo.CargoCrate.html b/Documentation/Cargo.CargoCrate.html index 4774a7526..1a92434e6 100644 --- a/Documentation/Cargo.CargoCrate.html +++ b/Documentation/Cargo.CargoCrate.html @@ -1749,6 +1749,17 @@ Controls a network of short range air/missile defense groups.

Field(s)

+
+
+ + +CARGO_CRATE.CargoCarrier + + + +
+ +
@@ -2417,6 +2428,17 @@ Controls a network of short range air/missile defense groups.

Field(s)

+
+ + +
diff --git a/Documentation/Cargo.CargoGroup.html b/Documentation/Cargo.CargoGroup.html index 8cf26ce7e..332e2ddec 100644 --- a/Documentation/Cargo.CargoGroup.html +++ b/Documentation/Cargo.CargoGroup.html @@ -1820,10 +1820,27 @@ Controls a network of short range air/missile defense groups.

+CARGO_GROUP.CargoCarrier + + + + +

self.CargoObject:Destroy()

+ +
+ +
+
+
+ + CARGO_GROUP.CargoGroup + +

Then we register the new group in the database

+
@@ -1835,20 +1852,6 @@ Controls a network of short range air/missile defense groups.

-
- -
-
-
- - -CARGO_GROUP.CargoObject - - - - -

Now we spawn the new group based on the template created.

-
@@ -3138,10 +3141,27 @@ This works for ground only groups.

+CARGO_GROUP.CargoCarrier + + + + +

self.CargoObject:Destroy()

+ +
+ +
+
+
+ + CARGO_GROUP.CargoGroup + +

Then we register the new group in the database

+
@@ -3153,20 +3173,6 @@ This works for ground only groups.

- - - -
-
- - -CARGO_GROUP.CargoObject - - - - -

Now we spawn the new group based on the template created.

-
diff --git a/Documentation/Cargo.CargoUnit.html b/Documentation/Cargo.CargoUnit.html index 49ec27dee..c1b1d60de 100644 --- a/Documentation/Cargo.CargoUnit.html +++ b/Documentation/Cargo.CargoUnit.html @@ -1698,6 +1698,17 @@ Note that ground forces behave in a group, and thus, act in formation, regardles
+CARGO_UNIT.CargoCarrier + + + +
+ + +
+
+ + CARGO_UNIT.CargoInAir @@ -1716,6 +1727,17 @@ Note that ground forces behave in a group, and thus, act in formation, regardles

Set cargo object.

+
+ +
+
+
+ + #number +CARGO_UNIT.RunCount + + +
@@ -2402,6 +2424,17 @@ Note that ground forces behave in a group, and thus, act in formation, regardles
+CARGO_UNIT.CargoCarrier + + + +
+ + +
+
+ + CARGO_UNIT.CargoInAir @@ -2420,6 +2453,17 @@ Note that ground forces behave in a group, and thus, act in formation, regardles

Set cargo object.

+
+ +
+
+
+ + #number +CARGO_UNIT.RunCount + + +
diff --git a/Documentation/Core.Fsm.html b/Documentation/Core.Fsm.html index 7e8aa11bd..85d4686f5 100644 --- a/Documentation/Core.Fsm.html +++ b/Documentation/Core.Fsm.html @@ -5656,7 +5656,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #string FSM._StartState @@ -7259,7 +7259,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #string FSM._StartState diff --git a/Documentation/Core.Settings.html b/Documentation/Core.Settings.html index 5b348a868..963af8414 100644 --- a/Documentation/Core.Settings.html +++ b/Documentation/Core.Settings.html @@ -2770,11 +2770,22 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #boolean SETTINGS.Metric +
+ +
+
+
+ + +SETTINGS.PlayerMenu + + +
@@ -4864,11 +4875,22 @@ It is advised to use this method at the start of the mission.

- + #boolean SETTINGS.Metric +
+ +
+
+
+ + +SETTINGS.PlayerMenu + + +
diff --git a/Documentation/Core.Spawn.html b/Documentation/Core.Spawn.html index e1b3f0ea7..78623e2aa 100644 --- a/Documentation/Core.Spawn.html +++ b/Documentation/Core.Spawn.html @@ -2730,6 +2730,12 @@ and any spaces before and after the resulting name are removed.

SPAWN:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle)

+ + + +

SPAWN.uncontrolled

+ + @@ -3362,6 +3368,9 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau + +

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

+
@@ -3508,6 +3517,17 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau +
+ +
+
+
+ + +SPAWN.SpawnInitFreq + + +
@@ -3591,28 +3611,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

By default, no InitLimit

- - - -
-
- - -SPAWN.SpawnInitLivery - - - -
- -
-
-
- - -SPAWN.SpawnInitModex - - -
@@ -3901,6 +3899,17 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

When working in UnControlled mode, all planes are Spawned in UnControlled mode before the scheduler starts.

+ + + +
+
+ + +SPAWN.uncontrolled + + +
@@ -8720,6 +8729,9 @@ This is needed to ensure that Re-SPAWNing only is done for landed AIR Groups.

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

+ @@ -8866,6 +8878,17 @@ This is needed to ensure that Re-SPAWNing only is done for landed AIR Groups.

+ + +
+
+ + +SPAWN.SpawnInitFreq + + +
@@ -8949,28 +8972,6 @@ This is needed to ensure that Re-SPAWNing only is done for landed AIR Groups.

By default, no InitLimit

- - - -
-
- - -SPAWN.SpawnInitLivery - - - -
- -
-
-
- - -SPAWN.SpawnInitModex - - -
@@ -9259,6 +9260,17 @@ This is needed to ensure that Re-SPAWNing only is done for landed AIR Groups.

When working in UnControlled mode, all planes are Spawned in UnControlled mode before the scheduler starts.

+ + + +
+
+ + +SPAWN.uncontrolled + + +
diff --git a/Documentation/Core.Spot.html b/Documentation/Core.Spot.html index 7e63e1d42..0b858fece 100644 --- a/Documentation/Core.Spot.html +++ b/Documentation/Core.Spot.html @@ -2670,50 +2670,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -
-
- - -SPOT.ScheduleID - - - -
- -
-
-
- - -SPOT.SpotIR - - - -
- -
-
-
- - -SPOT.SpotLaser - - - -
- -
-
-
- - -SPOT.Target - - -
@@ -3927,50 +3883,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -
-
- - -SPOT.ScheduleID - - - -
- -
-
-
- - -SPOT.SpotIR - - - -
- -
-
-
- - -SPOT.SpotLaser - - - -
- -
-
-
- - -SPOT.Target - - -
@@ -5475,50 +5387,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -
-
- - -SPOT.ScheduleID - - - -
- -
-
-
- - -SPOT.SpotIR - - - -
- -
-
-
- - -SPOT.SpotLaser - - - -
- -
-
-
- - -SPOT.Target - - -
diff --git a/Documentation/Functional.Designate.html b/Documentation/Functional.Designate.html index 5e51b7402..9b9bafe1b 100644 --- a/Documentation/Functional.Designate.html +++ b/Documentation/Functional.Designate.html @@ -3434,17 +3434,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - - - -
-
- - #table -DESIGNATE.LaserCodes - - -
@@ -6602,17 +6591,6 @@ Designate:SetFlashStatusMenu( false ) - - - -
-
- - #table -DESIGNATE.LaserCodes - - -
@@ -7412,17 +7390,6 @@ Designate:SetFlashStatusMenu( false ) - - - -
-
- - #table -DESIGNATE.LaserCodes - - -
@@ -8192,17 +8159,6 @@ Designate:SetFlashStatusMenu( false ) - - - -
-
- - #table -DESIGNATE.LaserCodes - - -
@@ -9864,17 +9820,6 @@ Designate:SetFlashStatusMenu( false ) - - - -
-
- - #table -DESIGNATE.LaserCodes - - -
diff --git a/Documentation/Functional.Detection.html b/Documentation/Functional.Detection.html index 8f64a5bd1..2208f74a5 100644 --- a/Documentation/Functional.Detection.html +++ b/Documentation/Functional.Detection.html @@ -18775,6 +18775,28 @@ BASE:TraceOnOff( false ) + + + +
+
+ + #number +DETECTION_BASE.DetectedItemCount + + + +
+ +
+
+
+ + #number +DETECTION_BASE.DetectedItemMax + + +
@@ -23466,6 +23488,28 @@ zones that reflect cloudy areas where detected units may not be so easily visual + + + +
+
+ + #number +DETECTION_BASE.DetectedItemCount + + + +
+ +
+
+
+ + #number +DETECTION_BASE.DetectedItemMax + + +
@@ -25212,6 +25256,28 @@ zones that reflect cloudy areas where detected units may not be so easily visual + + + +
+
+ + #number +DETECTION_BASE.DetectedItemCount + + + +
+ +
+
+
+ + #number +DETECTION_BASE.DetectedItemMax + + +
diff --git a/Documentation/Functional.Mantis.html b/Documentation/Functional.Mantis.html index dae250a71..11a80f5fe 100644 --- a/Documentation/Functional.Mantis.html +++ b/Documentation/Functional.Mantis.html @@ -3204,9 +3204,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau - -

switch alarm state RED

- @@ -6178,9 +6175,6 @@ E.g. `mymantis:SetAdvancedMode(true, 90)` - -

switch alarm state RED

- diff --git a/Documentation/Functional.Rat.html b/Documentation/Functional.Rat.html index 743d12cdf..6b4ded5f9 100644 --- a/Documentation/Functional.Rat.html +++ b/Documentation/Functional.Rat.html @@ -4324,6 +4324,12 @@ and any spaces before and after the resulting name are removed.

RAT:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle)

+ + + +

RAT.uncontrolled

+ + diff --git a/Documentation/Functional.Sead.html b/Documentation/Functional.Sead.html index 4d2f1d80a..b703c794f 100644 --- a/Documentation/Functional.Sead.html +++ b/Documentation/Functional.Sead.html @@ -1581,7 +1581,7 @@ Controls a network of short range air/missile defense groups.

SEAD.HarmData

-

Missile enumerators

+

Missile enumerators - from DCS ME and Wikipedia

@@ -2181,7 +2181,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau #table SEAD.HarmData -

Missile enumerators

+

Missile enumerators - from DCS ME and Wikipedia

@@ -2522,7 +2522,7 @@ SEAD_RU_SAM_Defenses = SEAD:New( { 'RU SA-6 Kub', 'RU SA-6 Defenses', 'RU MI-26 #table SEAD.HarmData -

Missile enumerators

+

Missile enumerators - from DCS ME and Wikipedia

diff --git a/Documentation/Ops.Airboss.html b/Documentation/Ops.Airboss.html index 63699acff..90ecff54f 100644 --- a/Documentation/Ops.Airboss.html +++ b/Documentation/Ops.Airboss.html @@ -9166,17 +9166,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Radio queue of LSO.

- - - -
-
- - -AIRBOSS.RQLid - - -
@@ -9188,17 +9177,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Radio queue of marshal.

- - - -
-
- - -AIRBOSS.RQMid - - -
@@ -28351,17 +28329,6 @@ If removed flight is the section lead, we try to find a new leader.

Radio queue of LSO.

- - - -
-
- - -AIRBOSS.RQLid - - -
@@ -28373,17 +28340,6 @@ If removed flight is the section lead, we try to find a new leader.

Radio queue of marshal.

- - - -
-
- - -AIRBOSS.RQMid - - -
@@ -31354,17 +31310,6 @@ If removed flight is the section lead, we try to find a new leader.

Radio queue of LSO.

- - - -
-
- - -AIRBOSS.RQLid - - -
@@ -31376,17 +31321,6 @@ If removed flight is the section lead, we try to find a new leader.

Radio queue of marshal.

- - - -
-
- - -AIRBOSS.RQMid - - -
@@ -38663,7 +38597,7 @@ BASE:TraceOnOff( false ) -

Set current case.

+

Set case of f

@@ -38722,20 +38656,6 @@ BASE:TraceOnOff( false ) - -
-
- - -AIRBOSS.PlayerData.flag - - - - -

Decrease stack/flag. Human player needs to take care himself.

- -
-
@@ -38916,9 +38836,6 @@ BASE:TraceOnOff( false ) - -

Set time stamp.

-
diff --git a/Documentation/Ops.CSAR.html b/Documentation/Ops.CSAR.html index ebe5f06c5..e9f9bc3cf 100644 --- a/Documentation/Ops.CSAR.html +++ b/Documentation/Ops.CSAR.html @@ -3451,7 +3451,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.FreeVHFFrequencies @@ -3540,11 +3540,14 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.allheligroupset + +

GROUP_SET of all helis

+
@@ -3700,22 +3703,28 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.csarUnits + +

table of CSAR unit names

+
- + #table CSAR.downedPilots + +

Replacement woundedGroups

+
@@ -4022,6 +4031,34 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
+
+
+
+ + #number +CSAR.rescuedpilots + + + + +

counter for saved pilots

+ +
+ +
+
+
+ + #number +CSAR.rescues + + + + +

counter for successful rescue landings at FARP/AFB/MASH

+ +
+
@@ -7851,7 +7888,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.FreeVHFFrequencies @@ -7940,11 +7977,14 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.allheligroupset + +

GROUP_SET of all helis

+
@@ -8100,22 +8140,28 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.csarUnits + +

table of CSAR unit names

+
- + #table CSAR.downedPilots + +

Replacement woundedGroups

+
@@ -8422,6 +8468,34 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
+
+
+
+ + #number +CSAR.rescuedpilots + + + + +

counter for saved pilots

+ +
+ +
+
+
+ + #number +CSAR.rescues + + + + +

counter for successful rescue landings at FARP/AFB/MASH

+ +
+
@@ -10025,7 +10099,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.FreeVHFFrequencies @@ -10114,11 +10188,14 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.allheligroupset + +

GROUP_SET of all helis

+
@@ -10274,22 +10351,28 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CSAR.csarUnits + +

table of CSAR unit names

+
- + #table CSAR.downedPilots + +

Replacement woundedGroups

+
@@ -10596,6 +10679,34 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
+
+
+
+ + #number +CSAR.rescuedpilots + + + + +

counter for saved pilots

+ +
+ +
+
+
+ + #number +CSAR.rescues + + + + +

counter for successful rescue landings at FARP/AFB/MASH

+ +
+
diff --git a/Documentation/Ops.CTLD.html b/Documentation/Ops.CTLD.html index 8fb703e89..1233fc517 100644 --- a/Documentation/Ops.CTLD.html +++ b/Documentation/Ops.CTLD.html @@ -1591,14 +1591,16 @@ Create the late-activated troops, vehicles (no statics at this point!) that will -- if you want to add weight to your Heli, troops can have a weight in kg **per person**. Currently no max weight checked. Fly carefully. my_ctld:AddTroopsCargo("Anti-Tank Small",{"ATS"},CTLD_CARGO.Enum.TROOPS,3,80) - -- add infantry unit called "Anti-Tank" using templates "AA" and "AA"", of type TROOP with size 4 - my_ctld:AddTroopsCargo("Anti-Air",{"AA","AA2"},CTLD_CARGO.Enum.TROOPS,4) + -- add infantry unit called "Anti-Tank" using templates "AA" and "AA"", of type TROOP with size 4. No weight. We only have 2 in stock: + my_ctld:AddTroopsCargo("Anti-Air",{"AA","AA2"},CTLD_CARGO.Enum.TROOPS,4,nil,2) -- add vehicle called "Humvee" using template "Humvee", of type VEHICLE, size 2, i.e. needs two crates to be build -- vehicles and FOB will be spawned as crates in a LOAD zone first. Once transported to DROP zones, they can be build into the objects my_ctld:AddCratesCargo("Humvee",{"Humvee"},CTLD_CARGO.Enum.VEHICLE,2) -- if you want to add weight to your Heli, crates can have a weight in kg **per crate**. Currently no max weight checked. Fly carefully. my_ctld:AddCratesCargo("Humvee",{"Humvee"},CTLD_CARGO.Enum.VEHICLE,2,2775) + -- if you want to limit your stock, add a number (here: 10) as parameter after weight. No parameter / nil means unlimited stock. + my_ctld:AddCratesCargo("Humvee",{"Humvee"},CTLD_CARGO.Enum.VEHICLE,2,2775,10) -- add infantry unit called "Forward Ops Base" using template "FOB", of type FOB, size 4, i.e. needs four crates to be build: my_ctld:AddCratesCargo("Forward Ops Base",{"FOB"},CTLD_CARGO.Enum.FOB,4) @@ -1693,6 +1695,28 @@ Create the late-activated troops, vehicles (no statics at this point!) that will my_ctld:DeactivateZone(Name,CTLD.CargoZoneType.DROP) +

2.1.3 Limit and manage available resources

+ +

When adding generic cargo types, you can effectively limit how many units can be dropped/build by the players, e.g.

+ +
         -- if you want to limit your stock, add a number (here: 10) as parameter after weight. No parameter / nil means unlimited stock.
+         my_ctld:AddCratesCargo("Humvee",{"Humvee"},CTLD_CARGO.Enum.VEHICLE,2,2775,10)
+
+ +

You can manually add or remove the available stock like so:

+ +
         -- Crates
+         my_ctld:AddStockCrates("Humvee", 2)
+         my_ctld:RemoveStockCrates("Humvee", 2)
+
+         -- Troops
+         my_ctld:AddStockTroops("Anti-Air", 2)
+         my_ctld:RemoveStockTroops("Anti-Air", 2)
+
+ +

Notes: + Troops dropped back into a LOAD zone will effectively be added to the stock. Crates lost in e.g. a heli crash are just that - lost.

+

3. Events

The class comes with a number of FSM-based events that missions designers can use to shape their mission. @@ -1852,6 +1876,27 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but +

+ +
+
+ + + + + +

Global CTLD_ENGINEERING

+ +
+
+ @@ -1923,19 +1968,31 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but -

CTLD:AddCratesCargo(Name, Templates, Type, NoCrates, PerCrateMass)

+

CTLD:AddCratesCargo(Name, Templates, Type, NoCrates, PerCrateMass, Stock)

User function - Add generic crate-type loadable as cargo.

-

CTLD:AddCratesRepair(Name, Template, Type, NoCrates, PerCrateMass)

+

CTLD:AddCratesRepair(Name, Template, Type, NoCrates, PerCrateMass, Stock)

User function - Add generic repair crates loadable as cargo.

-

CTLD:AddTroopsCargo(Name, Templates, Type, NoTroops, PerTroopMass)

+

CTLD:AddStockCrates(Name, Number)

+ +

User - function to add stock of a certain crates type

+ + + +

CTLD:AddStockTroops(Name, Number)

+ +

User - function to add stock of a certain troops type

+ + + +

CTLD:AddTroopsCargo(Name, Templates, Type, NoTroops, PerTroopMass, Stock)

User function - Add generic troop type loadable as cargo.

@@ -2046,6 +2103,24 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but

CTLD.DroppedTroops

+ + + +

CTLD.EngineerSearch

+ + + + + +

CTLD.Engineers

+ + + + + +

CTLD.EngineersInField

+ + @@ -2148,6 +2223,12 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but

CTLD.Loaded_Cargo

+ + + +

CTLD.Mark

+ + @@ -2238,6 +2319,18 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but

CTLD.RadioSound

+ + + +

CTLD:RemoveStockCrates(Name, Number)

+ +

User - function to remove stock of a certain crates type

+ + + +

CTLD:RemoveStockTroops(Name, Number)

+ +

User - function to remove stock of a certain troops type

@@ -2268,6 +2361,12 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but

CTLD:Status()

Triggers the FSM event "Status".

+ + + +

CTLD.Stock

+ + @@ -2319,7 +2418,7 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but -

CTLD:_BuildCrates(Group, Unit)

+

CTLD:_BuildCrates(Group, Unit, Engineering)

(Internal) Function to build nearby crates.

@@ -2328,6 +2427,12 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but

CTLD:_BuildObjectFromCrates(Group, Unit, Build, Repair, Coordinate, RepairLocation)

(Internal) Function to actually SPAWN buildables in the mission.

+ + + +

CTLD:_CheckEngineers()

+ +

(Internal) Check on engineering teams

@@ -2469,13 +2574,13 @@ be loaded from the Rearm/Refuel menu, i.e. you can drop them into the field, but -

CTLD:_RepairCrates(Group, Unit)

+

CTLD:_RepairCrates(Group, Unit, Engineering)

(Internal) Function to repair nearby vehicles / FOBs

-

CTLD:_RepairObjectFromCrates(Group, Unit, Crates, Build, Number)

+

CTLD:_RepairObjectFromCrates(Group, Unit, Crates, Build, Number, Engineering)

(Internal) Function to repair an object.

@@ -3881,7 +3986,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
CTLD_CARGO -, extends Core.Fsm#FSM , extends Core.Base#BASE
@@ -3890,6 +3994,18 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau Fields and Methods inherited from CTLD_CARGO Description + +

CTLD_CARGO:AddMark(Mark)

+ + + + + +

CTLD_CARGO:AddStock(Number)

+ +

Add Stock.

+ +

CTLD_CARGO:CanLoadDirectly()

@@ -3930,6 +4046,12 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO:GetID()

Query ID.

+ + + +

CTLD_CARGO:GetMark(Mark)

+ + @@ -3942,6 +4064,12 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO:GetPositionable()

Query type.

+ + + +

CTLD_CARGO:GetStock()

+ +

Get Stock.

@@ -3996,6 +4124,12 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO.LoadDirectly

Flag for direct loading.

+ + + +

CTLD_CARGO.Mark

+ + @@ -4005,7 +4139,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau -

CTLD_CARGO:New(ID, Name, Templates, Sorte, HasBeenMoved, LoadDirectly, CratesNeeded, Positionable, Dropped, PerCrateMass)

+

CTLD_CARGO:New(ID, Name, Templates, Sorte, HasBeenMoved, LoadDirectly, CratesNeeded, Positionable, Dropped, PerCrateMass, Stock)

Function to create new CTLD_CARGO object.

@@ -4020,6 +4154,12 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO.Positionable

Representation of cargo in the mission.

+ + + +

CTLD_CARGO:RemoveStock(Number)

+ +

Remove Stock.

@@ -4032,6 +4172,12 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO:SetWasDropped(dropped)

Set WasDropped.

+ + + +

CTLD_CARGO.Stock

+ +

Number of builds available, -1 for unlimited

@@ -4052,282 +4198,10 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Query was dropped.

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Fields and Methods inherited from FSMDescription

CTLD_CARGO:AddEndState(State)

-

Adds an End state.

-

CTLD_CARGO:AddProcess(From, Event, Process, ReturnEvents)

-

Set the default Process template with key ProcessName providing the ProcessClass and the process object when it is assigned to a Wrapper.Controllable by the task.

-

CTLD_CARGO:AddScore(State, ScoreText, Score)

-

Adds a score for the FSM to be achieved.

-

CTLD_CARGO:AddScoreProcess(From, Event, State, ScoreText, Score)

-

Adds a score for the FSM_PROCESS to be achieved.

-

CTLD_CARGO:AddTransition(From, Event, To)

-

Add a new transition rule to the FSM.

-

CTLD_CARGO.CallScheduler

-

Call scheduler.

-

CTLD_CARGO.ClassName

-

Name of the class.

-

CTLD_CARGO.Events

CTLD_CARGO:WipeMark()

-

CTLD_CARGO:GetCurrentState()

-

Get current state.

-

CTLD_CARGO:GetEndStates()

-

Returns the End states.

-

CTLD_CARGO:GetProcess(From, Event)

- -

CTLD_CARGO:GetProcesses()

-

Returns a table of the SubFSM rules defined within the FSM.

-

CTLD_CARGO:GetScores()

-

Returns a table with the scores defined.

-

CTLD_CARGO:GetStartState()

-

Returns the start state of the FSM.

-

CTLD_CARGO:GetState()

-

Get current state.

-

CTLD_CARGO:GetSubs()

-

Returns a table with the Subs defined.

-

CTLD_CARGO:GetTransitions()

-

Returns a table of the transition rules defined within the FSM.

-

CTLD_CARGO:Is(State, If)

-

Check if FSM is in state.

-

CTLD_CARGO:LoadCallBacks(CallBackTable)

-

Load call backs.

-

CTLD_CARGO:New()

-

Creates a new FSM object.

-

CTLD_CARGO.Scores

-

Scores.

-

CTLD_CARGO:SetProcess(From, Event, Fsm)

- -

CTLD_CARGO:SetStartState(State)

-

Sets the start state of the FSM.

-

CTLD_CARGO._EndStates

- -

CTLD_CARGO._EventSchedules

- -

CTLD_CARGO._Processes

- -

CTLD_CARGO._Scores

- -

CTLD_CARGO._StartState

- -

CTLD_CARGO._Transitions

- -

CTLD_CARGO:_add_to_map(Map, Event)

-

Add to map.

-

CTLD_CARGO:_call_handler(step, trigger, params, EventName)

-

Call handler.

-

CTLD_CARGO:_create_transition(EventName)

-

Create transition.

-

CTLD_CARGO:_delayed_transition(EventName)

-

Delayed transition.

-

CTLD_CARGO:_eventmap(Events, EventStructure)

-

Event map.

-

CTLD_CARGO:_gosub(ParentFrom, ParentEvent)

-

Go sub.

-

CTLD_CARGO:_handler(EventName, ...)

-

Handler.

-

CTLD_CARGO:_isendstate(Current)

-

Is end state.

-

CTLD_CARGO:_submap(subs, sub, name)

-

Sub maps.

-

CTLD_CARGO:can(e)

-

Check if can do an event.

-

CTLD_CARGO:cannot(e)

-

Check if cannot do an event.

-

CTLD_CARGO.current

-

Current state name.

-

CTLD_CARGO.endstates

- -

CTLD_CARGO:is(State, If, state)

-

Check if FSM is in state.

-

CTLD_CARGO.options

-

Options.

-

CTLD_CARGO.subs

-

Subs.

@@ -4876,6 +4750,12 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO.Enum.CRATE

+ + + +

CTLD_CARGO.Enum.ENGINEERS

+ + @@ -4906,6 +4786,693 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

CTLD_CARGO.Enum.VEHICLE

+ + + +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields and Methods inherited from CTLD_ENGINEERINGDescription

CTLD_ENGINEERING:Arrive()

+

(Internal) Arrived at crates in reach.

+

CTLD_ENGINEERING:Build()

+

(Internal) Set build status.

+

CTLD_ENGINEERING.ClassName

+ +

CTLD_ENGINEERING:Done()

+

(Internal) Set done status.

+

CTLD_ENGINEERING:GetStatus()

+

(Internal) Get the status

+

CTLD_ENGINEERING.Group

+ +

CTLD_ENGINEERING.HeliGroup

+ +

CTLD_ENGINEERING.HeliUnit

+ +

CTLD_ENGINEERING:IsNotStatus(State)

+

(Internal) Check the negative status

+

CTLD_ENGINEERING:IsStatus(State)

+

(Internal) Check the status

+

CTLD_ENGINEERING:Move()

+

(Internal) Move towards crates in reach.

+

CTLD_ENGINEERING.Name

+ +

CTLD_ENGINEERING:New(Name, GroupName, HeliGroup, HeliGroup, HeliUnit)

+

Create a new instance.

+

CTLD_ENGINEERING:Search(crates, number)

+

(Internal) Search for crates in reach.

+

CTLD_ENGINEERING:SetStatus(State)

+

(Internal) Set the status

+

CTLD_ENGINEERING:Start()

+

(Internal) Set start status.

+

CTLD_ENGINEERING.State

+ +

CTLD_ENGINEERING:Stop()

+

(Internal) Set stop status.

+

CTLD_ENGINEERING.Unit

+ +

CTLD_ENGINEERING.Version

+ +

CTLD_ENGINEERING:_GetDistance(_point1, _point2)

+

(Internal) Return distance in meters between two coordinates.

+

CTLD_ENGINEERING.currwpt

+ +

CTLD_ENGINEERING.lid

+ +

CTLD_ENGINEERING.marktimer

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields and Methods inherited from BASEDescription

CTLD_ENGINEERING.ClassID

+

The ID number of the class.

+

CTLD_ENGINEERING.ClassName

+

The name of the class.

+

CTLD_ENGINEERING.ClassNameAndID

+

The name of the class concatenated with the ID number of the class.

+

CTLD_ENGINEERING:ClearState(Object, StateName)

+

Clear the state of an object.

+

CTLD_ENGINEERING:CreateEventBirth(EventTime, Initiator, IniUnitName, place, subplace)

+

Creation of a Birth Event.

+

CTLD_ENGINEERING:CreateEventCrash(EventTime, Initiator)

+

Creation of a Crash Event.

+

CTLD_ENGINEERING:CreateEventDead(EventTime, Initiator)

+

Creation of a Dead Event.

+

CTLD_ENGINEERING:CreateEventPlayerEnterAircraft(PlayerUnit)

+

Creation of a S_EVENT_PLAYER_ENTER_AIRCRAFT event.

+

CTLD_ENGINEERING:CreateEventRemoveUnit(EventTime, Initiator)

+

Creation of a Remove Unit Event.

+

CTLD_ENGINEERING:CreateEventTakeoff(EventTime, Initiator)

+

Creation of a Takeoff Event.

+

CTLD_ENGINEERING:E(Arguments)

+

Log an exception which will be traced always.

+

CTLD_ENGINEERING:EventDispatcher()

+

Returns the event dispatcher

+

CTLD_ENGINEERING:EventRemoveAll()

+

Remove all subscribed events

+

CTLD_ENGINEERING:F(Arguments)

+

Trace a function call.

+

CTLD_ENGINEERING:F2(Arguments)

+

Trace a function call level 2.

+

CTLD_ENGINEERING:F3(Arguments)

+

Trace a function call level 3.

+

CTLD_ENGINEERING:GetClassID()

+

Get the ClassID of the class instance.

+

CTLD_ENGINEERING:GetClassName()

+

Get the ClassName of the class instance.

+

CTLD_ENGINEERING:GetClassNameAndID()

+

Get the ClassName + ClassID of the class instance.

+

CTLD_ENGINEERING:GetEventPriority()

+

Get the Class Event processing Priority.

+

CTLD_ENGINEERING:GetParent(Child, FromClass)

+

This is the worker method to retrieve the Parent class.

+

CTLD_ENGINEERING:GetState(Object, Key)

+

Get a Value given a Key from the Object.

+

CTLD_ENGINEERING:HandleEvent(EventID, EventFunction)

+

Subscribe to a DCS Event.

+

CTLD_ENGINEERING:I(Arguments)

+

Log an information which will be traced always.

+

CTLD_ENGINEERING:Inherit(Child, Parent)

+

This is the worker method to inherit from a parent class.

+

CTLD_ENGINEERING:IsInstanceOf(ClassName)

+

This is the worker method to check if an object is an (sub)instance of a class.

+

CTLD_ENGINEERING:IsTrace()

+

Enquires if tracing is on (for the class).

+

CTLD_ENGINEERING:New()

+

BASE constructor.

+

CTLD_ENGINEERING:OnEvent(EventData)

+

Occurs when an object is completely destroyed.

+

CTLD_ENGINEERING:OnEventBDA(EventData)

+

BDA.

+

CTLD_ENGINEERING:OnEventBaseCaptured(EventData)

+

Occurs when a ground unit captures either an airbase or a farp.

+

CTLD_ENGINEERING:OnEventBirth(EventData)

+

Occurs when any object is spawned into the mission.

+

CTLD_ENGINEERING:OnEventCrash(EventData)

+

Occurs when any aircraft crashes into the ground and is completely destroyed.

+

CTLD_ENGINEERING:OnEventDead(EventData)

+

Occurs when an object is dead.

+

CTLD_ENGINEERING:OnEventDetailedFailure(EventData)

+

Unknown precisely what creates this event, likely tied into newer damage model.

+

CTLD_ENGINEERING:OnEventDiscardChairAfterEjection(EventData)

+

Discard chair after ejection.

+

CTLD_ENGINEERING:OnEventEjection(EventData)

+

Occurs when a pilot ejects from an aircraft +initiator : The unit that has ejected

+

CTLD_ENGINEERING:OnEventEngineShutdown(EventData)

+

Occurs when any aircraft shuts down its engines.

+

CTLD_ENGINEERING:OnEventEngineStartup(EventData)

+

Occurs when any aircraft starts its engines.

+

CTLD_ENGINEERING:OnEventHit(EventData)

+

Occurs whenever an object is hit by a weapon.

+

CTLD_ENGINEERING:OnEventHumanFailure(EventData)

+

Occurs when any system fails on a human controlled aircraft.

+

CTLD_ENGINEERING:OnEventKill(EventData)

+

Occurs on the death of a unit.

+

CTLD_ENGINEERING:OnEventLand(EventData)

+

Occurs when an aircraft lands at an airbase, farp or ship +initiator : The unit that has landed +place: Object that the unit landed on.

+

CTLD_ENGINEERING:OnEventLandingAfterEjection(EventData)

+

Occurs shortly after the landing animation of an ejected pilot touching the ground and standing up.

+

CTLD_ENGINEERING:OnEventLandingQualityMark(EventData)

+

Landing quality mark.

+

CTLD_ENGINEERING:OnEventMarkAdded(EventData)

+

Occurs when a new mark was added.

+

CTLD_ENGINEERING:OnEventMarkChange(EventData)

+

Occurs when a mark text was changed.

+

CTLD_ENGINEERING:OnEventMarkRemoved(EventData)

+

Occurs when a mark was removed.

+

CTLD_ENGINEERING:OnEventMissionEnd(EventData)

+

Occurs when a mission ends

+

CTLD_ENGINEERING:OnEventMissionStart(EventData)

+

Occurs when a mission starts

+

CTLD_ENGINEERING:OnEventParatrooperLanding(EventData)

+

Weapon add.

+

CTLD_ENGINEERING:OnEventPilotDead(EventData)

+

Occurs when the pilot of an aircraft is killed.

+

CTLD_ENGINEERING:OnEventPlayerEnterAircraft(EventData)

+

Occurs when a player enters a slot and takes control of an aircraft.

+

CTLD_ENGINEERING:OnEventPlayerEnterUnit(EventData)

+

Occurs when any player assumes direct control of a unit.

+

CTLD_ENGINEERING:OnEventPlayerLeaveUnit(EventData)

+

Occurs when any player relieves control of a unit to the AI.

+

CTLD_ENGINEERING:OnEventRefueling(EventData)

+

Occurs when an aircraft connects with a tanker and begins taking on fuel.

+

CTLD_ENGINEERING:OnEventRefuelingStop(EventData)

+

Occurs when an aircraft is finished taking fuel.

+

CTLD_ENGINEERING:OnEventScore(EventData)

+

Occurs when any modification to the "Score" as seen on the debrief menu would occur.

+

CTLD_ENGINEERING:OnEventShootingEnd(EventData)

+

Occurs when any unit stops firing its weapon.

+

CTLD_ENGINEERING:OnEventShootingStart(EventData)

+

Occurs when any unit begins firing a weapon that has a high rate of fire.

+

CTLD_ENGINEERING:OnEventShot(EventData)

+

Occurs whenever any unit in a mission fires a weapon.

+

CTLD_ENGINEERING:OnEventTakeoff(EventData)

+

Occurs when an aircraft takes off from an airbase, farp, or ship.

+

CTLD_ENGINEERING:OnEventTriggerZone(EventData)

+

Trigger zone.

+

CTLD_ENGINEERING:OnEventUnitLost(EventData)

+

Occurs when the game thinks an object is destroyed.

+

CTLD_ENGINEERING:ScheduleOnce(Start, SchedulerFunction, ...)

+

Schedule a new time event.

+

CTLD_ENGINEERING:ScheduleRepeat(Start, Repeat, RandomizeFactor, Stop, SchedulerFunction, ...)

+

Schedule a new time event.

+

CTLD_ENGINEERING:ScheduleStop(SchedulerFunction)

+

Stops the Schedule.

+

CTLD_ENGINEERING.Scheduler

+ +

CTLD_ENGINEERING:SetEventPriority(EventPriority)

+

Set the Class Event processing Priority.

+

CTLD_ENGINEERING:SetState(Object, Key, Value)

+

Set a state or property of the Object given a Key and a Value.

+

CTLD_ENGINEERING:T(Arguments)

+

Trace a function logic level 1.

+

CTLD_ENGINEERING:T2(Arguments)

+

Trace a function logic level 2.

+

CTLD_ENGINEERING:T3(Arguments)

+

Trace a function logic level 3.

+

CTLD_ENGINEERING:TraceAll(TraceAll)

+

Trace all methods in MOOSE

+

CTLD_ENGINEERING:TraceClass(Class)

+

Set tracing for a class

+

CTLD_ENGINEERING:TraceClassMethod(Class, Method)

+

Set tracing for a specific method of class

+

CTLD_ENGINEERING:TraceLevel(Level)

+

Set trace level

+

CTLD_ENGINEERING:TraceOff()

+

Set trace off.

+

CTLD_ENGINEERING:TraceOn()

+

Set trace on.

+

CTLD_ENGINEERING:TraceOnOff(TraceOnOff)

+

Set trace on or off +Note that when trace is off, no BASE.Debug statement is performed, increasing performance! +When Moose is loaded statically, (as one file), tracing is switched off by default.

+

CTLD_ENGINEERING:UnHandleEvent(EventID)

+

UnSubscribe to a DCS event.

+

CTLD_ENGINEERING._

+ +

CTLD_ENGINEERING:_F(Arguments, DebugInfoCurrentParam, DebugInfoFromParam)

+

Trace a function call.

+

CTLD_ENGINEERING:_T(Arguments, DebugInfoCurrentParam, DebugInfoFromParam)

+

Trace a function logic.

+

CTLD_ENGINEERING.__

+ +

CTLD_ENGINEERING:onEvent(event)

+
@@ -4983,17 +5550,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Name of the class.

-
- -
-
-
- - #number -CTLD.CrateCounter - - -
@@ -5025,7 +5581,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CTLD.CtldUnits @@ -5052,6 +5608,34 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau +
+ +
+
+
+ + #number +CTLD.EngineerSearch + + + + +

search distance for crates to build or repair

+ +
+ +
+
+
+ + #table +CTLD.EngineersInField + + + + +

holds #CTLD_ENGINEERING objects

+
@@ -5083,7 +5667,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + CTLD.FreeUHFFrequencies @@ -5224,14 +5808,11 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + CTLD.PilotGroups - -

tables

-
@@ -5274,8 +5855,8 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table -CTLD.Templates + #number +CTLD.Stock @@ -5285,8 +5866,8 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #number -CTLD.TroopCounter + #table +CTLD.Templates @@ -5789,7 +6370,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

User function - Add generic crate-type loadable as cargo.

@@ -5867,6 +6448,19 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Mass in kg of each crate

+
+
+
+
+

+ #number + Stock +

+
+
+ +

Number of groups in stock. Nil for unlimited.

+
@@ -5877,7 +6471,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

User function - Add generic repair crates loadable as cargo.

@@ -5955,6 +6549,19 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Mass in kg of each crate

+
+
+
+
+

+ #number + Stock +

+
+
+ +

Number of groups in stock. Nil for unlimited.

+
@@ -5965,7 +6572,121 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
+ +

User - function to add stock of a certain crates type

+ +
+
+

Defined in:

+
+

CTLD

+
+

Parameters:

+
+
+

+ #string + Name +

+
+
+ +

Name as defined in the generic cargo.

+ +
+
+
+
+

+ #number + Number +

+
+
+ +

Number of units/groups to add.

+ +
+
+

Return value:

+
+
+

#CTLD:

+
+
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

User - function to add stock of a certain troops type

+ +
+
+

Defined in:

+
+

CTLD

+
+

Parameters:

+
+
+

+ #string + Name +

+
+
+ +

Name as defined in the generic cargo.

+ +
+
+
+
+

+ #number + Number +

+
+
+ +

Number of units/groups to add.

+ +
+
+

Return value:

+
+
+

#CTLD:

+
+
+ +

self

+ +
+
+
+ +
+
+ +
+ +

User function - Add generic troop type loadable as cargo.

@@ -6043,6 +6764,19 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Mass in kg of each soldier

+
+
+
+
+

+ #number + Stock +

+
+
+ +

Number of groups in stock. Nil for unlimited.

+
@@ -7445,6 +8179,120 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
+
+ + +
+ +
+

CTLD:RemoveStockCrates(Name, Number)

+
+ +

User - function to remove stock of a certain crates type

+ +
+
+

Defined in:

+
+

CTLD

+
+

Parameters:

+
+
+

+ #string + Name +

+
+
+ +

Name as defined in the generic cargo.

+ +
+
+
+
+

+ #number + Number +

+
+
+ +

Number of units/groups to add.

+ +
+
+

Return value:

+
+
+

#CTLD:

+
+
+ +

self

+ +
+
+
+ +
+
+ +
+ +
+

CTLD:RemoveStockTroops(Name, Number)

+
+ +

User - function to remove stock of a certain troops type

+ +
+
+

Defined in:

+
+

CTLD

+
+

Parameters:

+
+
+

+ #string + Name +

+
+
+ +

Name as defined in the generic cargo.

+ +
+
+
+
+

+ #number + Number +

+
+
+ +

Number of units/groups to add.

+ +
+
+

Return value:

+
+
+

#CTLD:

+
+
+ +

self

+ +
+
+
+
@@ -7698,7 +8546,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
-

CTLD:_BuildCrates(Group, Unit)

+

CTLD:_BuildCrates(Group, Unit, Engineering)

(Internal) Function to build nearby crates.

@@ -7724,7 +8572,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
@@ -7732,6 +8580,19 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

+
+
+

+ #boolean + Engineering +

+
+
+ +

If true build is by an engineering team.

+ +
+
@@ -7823,6 +8684,36 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau + + + +
+ +
+

CTLD:_CheckEngineers()

+
+ +

(Internal) Check on engineering teams

+ +
+
+

Defined in:

+
+

CTLD

+
+

Return value:

+
+
+

#CTLD:

+
+
+ +

self

+ +
+
+
+
@@ -8856,7 +9747,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
-

CTLD:_RepairCrates(Group, Unit)

+

CTLD:_RepairCrates(Group, Unit, Engineering)

(Internal) Function to repair nearby vehicles / FOBs

@@ -8882,7 +9773,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
@@ -8890,6 +9781,19 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

+
+
+

+ #boolean + Engineering +

+
+
+ +

If true, this is an engineering role

+ +
+
@@ -8898,7 +9802,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
-

CTLD:_RepairObjectFromCrates(Group, Unit, Crates, Build, Number)

+

CTLD:_RepairObjectFromCrates(Group, Unit, Crates, Build, Number, Engineering)

(Internal) Function to repair an object.

@@ -8969,6 +9873,19 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Number of objects in Crates (found) to limit search.

+
+ +
+
+

+ #boolean + Engineering +

+
+
+ +

If true it is an Engineering repair.

+
@@ -9161,7 +10078,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

- Wrappe.Unit#UNIT + Wrapper.Unit#UNIT Unit

@@ -10440,17 +11357,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Name of the class.

-
- - -
-
- - #number -CTLD.CrateCounter - - -
@@ -10482,7 +11388,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CTLD.CtldUnits @@ -10509,6 +11415,34 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau +
+ +
+
+
+ + #number +CTLD.EngineerSearch + + + + +

search distance for crates to build or repair

+ +
+ +
+
+
+ + #table +CTLD.EngineersInField + + + + +

holds #CTLD_ENGINEERING objects

+
@@ -10540,7 +11474,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + CTLD.FreeUHFFrequencies @@ -10681,14 +11615,11 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + CTLD.PilotGroups - -

tables

-
@@ -10731,8 +11662,8 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table -CTLD.Templates + #number +CTLD.Stock @@ -10742,8 +11673,8 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #number -CTLD.TroopCounter + #table +CTLD.Templates @@ -12558,17 +13489,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau

Name of the class.

-
- -
-
-
- - #number -CTLD.CrateCounter - - -
@@ -12600,7 +13520,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #table CTLD.CtldUnits @@ -12627,6 +13547,34 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau +
+ +
+
+
+ + #number +CTLD.EngineerSearch + + + + +

search distance for crates to build or repair

+ +
+ +
+
+
+ + #table +CTLD.EngineersInField + + + + +

holds #CTLD_ENGINEERING objects

+
@@ -12658,7 +13606,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + CTLD.FreeUHFFrequencies @@ -12799,14 +13747,11 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + CTLD.PilotGroups - -

tables

-
@@ -12849,8 +13794,8 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table -CTLD.Templates + #number +CTLD.Stock @@ -12860,8 +13805,8 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #number -CTLD.TroopCounter + #table +CTLD.Templates @@ -16962,7 +17907,7 @@ BASE:TraceOnOff( false )
    -
  • CTLD_CARGO class, extends #Core.Base#BASE
  • +
  • CTLD_CARGO class, extends Core.Base#BASE
@@ -17088,6 +18033,17 @@ BASE:TraceOnOff( false )
+
+
+
+ + #number +CTLD_CARGO.Stock + +

Number of builds available, -1 for unlimited

+ +
+
@@ -17116,6 +18072,80 @@ BASE:TraceOnOff( false )
+ + + + +
+
+

Defined in:

+
+

CTLD_CARGO

+
+

Parameter:

+
+
+

+ Mark +

+
+
+

+
+
+
+ +
+
+ +
+ + + +

Add Stock.

+ +
+
+

Defined in:

+
+

CTLD_CARGO

+
+

Parameter:

+
+
+

+ #number + Number +

+
+
+ +

to add, one if nil.

+ +
+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ @@ -17201,6 +18231,36 @@ BASE:TraceOnOff( false )
+
+
+ +
+ + + + + +
+
+

Defined in:

+
+

CTLD_CARGO

+
+

Parameter:

+
+
+

+ Mark +

+
+
+

+
+
+
+
@@ -17261,6 +18321,36 @@ BASE:TraceOnOff( false )
+
+
+ +
+ + + +

Get Stock.

+ +
+
+

Defined in:

+
+

CTLD_CARGO

+
+

Return value:

+
+
+

#number:

+
+
+ +

Stock

+ +
+
+
+
@@ -17407,7 +18497,7 @@ BASE:TraceOnOff( false ) +
+
+
+

+ #number + Stock +

+
+
+ +

Number of builds available, nil for unlimited

+ +
+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ +
+

CTLD_CARGO:RemoveStock(Number)

+
+ +

Remove Stock.

+ +
+
+

Defined in:

+
+

CTLD_CARGO

+
+

Parameter:

+
+
+

+ #number + Number +

+
+
+ +

to reduce, one if nil.

+

Return value:

@@ -17654,6 +18801,25 @@ BASE:TraceOnOff( false )
+
+ + +
+ +
+

CTLD_CARGO:WipeMark()

+
+ + + +
+
+

Defined in:

+
+

CTLD_CARGO

+
+
+
@@ -17778,1499 +18944,6 @@ BASE:TraceOnOff( false )

Representation of cargo in the mission.

- - - -
-
- - #table -CTLD_CARGO.Templates - -

Table of #POSITIONABLE objects.

- -
- -
-
-
- - #CTLD_CARGO.Enum -CTLD_CARGO.Type - -

Enumerator of Type.

- -
- -
-
-

Function(s)

-
-
- -
-

CTLD_CARGO:AddEndState(State)

-
- -

Adds an End state.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - State -

-
-
- -

The FSM state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:AddProcess(From, Event, Process, ReturnEvents)

-
- -

Set the default Process template with key ProcessName providing the ProcessClass and the process object when it is assigned to a Wrapper.Controllable by the task.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #table - From -

-
-
- -

Can contain a string indicating the From state or a table of strings containing multiple From states.

- -
-
-
-
-

- #string - Event -

-
-
- -

The Event name.

- -
-
-
-
-

- Core.Fsm#FSM_PROCESS - Process -

-
-
- -

An sub-process FSM.

- -
-
-
-
-

- #table - ReturnEvents -

-
-
- -

A table indicating for which returned events of the SubFSM which Event must be triggered in the FSM.

- -
-
-

Return value:

-
- -
- -

The SubFSM.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:AddScore(State, ScoreText, Score)

-
- -

Adds a score for the FSM to be achieved.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - State -

-
-
- -

is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).

- -
-
-
-
-

- #string - ScoreText -

-
-
- -

is a text describing the score that is given according the status.

- -
-
-
-
-

- #number - Score -

-
-
- -

is a number providing the score of the status.

- -
-
-

Return value:

-
-
-

#FSM:

-
-
- -

self

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:AddScoreProcess(From, Event, State, ScoreText, Score)

-
- -

Adds a score for the FSM_PROCESS to be achieved.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - From -

-
-
- -

is the From State of the main process.

- -
-
-
-
-

- #string - Event -

-
-
- -

is the Event of the main process.

- -
-
-
-
-

- #string - State -

-
-
- -

is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).

- -
-
-
-
-

- #string - ScoreText -

-
-
- -

is a text describing the score that is given according the status.

- -
-
-
-
-

- #number - Score -

-
-
- -

is a number providing the score of the status.

- -
-
-

Return value:

-
-
-

#FSM:

-
-
- -

self

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:AddTransition(From, Event, To)

-
- -

Add a new transition rule to the FSM.

- - -

A transition rule defines when and if the FSM can transition from a state towards another state upon a triggered event.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #table - From -

-
-
- -

Can contain a string indicating the From state or a table of strings containing multiple From states.

- -
-
-
-
-

- #string - Event -

-
-
- -

The Event name.

- -
-
-
-
-

- #string - To -

-
-
- -

The To state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetCurrentState()

-
- -

Get current state.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#string:

-
-
- -

Current FSM state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetEndStates()

-
- -

Returns the End states.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#table:

-
-
- -

End states.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetProcess(From, Event)

-
- - - -
-
-

Defined in:

- -

Parameters:

-
-
-

- From -

-
-
-

-
-
-
-
-

- Event -

-
-
-

-
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetProcesses()

-
- -

Returns a table of the SubFSM rules defined within the FSM.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#table:

-
-
- -

Sub processes.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetScores()

-
- -

Returns a table with the scores defined.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#table:

-
-
- -

Scores.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetStartState()

-
- -

Returns the start state of the FSM.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#string:

-
-
- -

A string containing the start state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetState()

-
- -

Get current state.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#string:

-
-
- -

Current FSM state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetSubs()

-
- -

Returns a table with the Subs defined.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#table:

-
-
- -

Sub processes.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:GetTransitions()

-
- -

Returns a table of the transition rules defined within the FSM.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#table:

-
-
- -

Transitions.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:Is(State, If)

-
- -

Check if FSM is in state.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - State -

-
-
- -

State name.

- -
-
-
-
-

- #boolean - If -

-
-
- -

true, FSM is in this state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:LoadCallBacks(CallBackTable)

-
- -

Load call backs.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #table - CallBackTable -

-
-
- -

Table of call backs.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:New()

-
- -

Creates a new FSM object.

- -
-
-

Defined in:

- -

Return value:

-
-
-

#FSM:

-
-
- - - -
-
-
- -
-
- -
- -
-

CTLD_CARGO:SetProcess(From, Event, Fsm)

-
- - - -
-
-

Defined in:

- -

Parameters:

-
-
-

- From -

-
-
-

-
-
-
-
-

- Event -

-
-
-

-
-
-
-
-

- Fsm -

-
-
-

-
-
-
- -
-
- -
- -
-

CTLD_CARGO:SetStartState(State)

-
- -

Sets the start state of the FSM.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - State -

-
-
- -

A string defining the start state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_add_to_map(Map, Event)

-
- -

Add to map.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #table - Map -

-
-
- -

Map.

- -
-
-
-
-

- #table - Event -

-
-
- -

Event table.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_call_handler(step, trigger, params, EventName)

-
- -

Call handler.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - step -

-
-
- -

Step "onafter", "onbefore", "onenter", "onleave".

- -
-
-
-
-

- #string - trigger -

-
-
- -

Trigger.

- -
-
-
-
-

- #table - params -

-
-
- -

Parameters.

- -
-
-
-
-

- #string - EventName -

-
-
- -

Event name.

- -
-
-

Return value:

-
-
-
-
- -

Value.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_create_transition(EventName)

-
- -

Create transition.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - EventName -

-
-
- -

Event name.

- -
-
-

Return value:

-
-
-

#function:

-
-
- -

Function.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_delayed_transition(EventName)

-
- -

Delayed transition.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - EventName -

-
-
- -

Event name.

- -
-
-

Return value:

-
-
-

#function:

-
-
- -

Function.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_eventmap(Events, EventStructure)

-
- -

Event map.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #table - Events -

-
-
- -

Events.

- -
-
-
-
-

- #table - EventStructure -

-
-
- -

Event structure.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_gosub(ParentFrom, ParentEvent)

-
- -

Go sub.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - ParentFrom -

-
-
- -

Parent from state.

- -
-
-
-
-

- #string - ParentEvent -

-
-
- -

Parent event name.

- -
-
-

Return value:

-
-
-

#table:

-
-
- -

Subs.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_handler(EventName, ...)

-
- -

Handler.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - EventName -

-
-
- -

Event name.

- -
-
-
-
-

- ... -

-
-
- -

Arguments.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_isendstate(Current)

-
- -

Is end state.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - Current -

-
-
- -

Current state name.

- -
-
-

Return values:

-
-
-

#table:

-
-
- -

FSM parent.

- -
-
-

#string:

-
-
- -

Event name.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:_submap(subs, sub, name)

-
- -

Sub maps.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #table - subs -

-
-
- -

Subs.

- -
-
-
-
-

- #table - sub -

-
-
- -

Sub.

- -
-
-
-
-

- #string - name -

-
-
- -

Name.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:can(e)

-
- -

Check if can do an event.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - e -

-
-
- -

Event name.

- -
-
-

Return values:

-
-
-

#boolean:

-
-
- -

If true, FSM can do the event.

- -
-
-

#string:

-
-
- -

To state.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:cannot(e)

-
- -

Check if cannot do an event.

- -
-
-

Defined in:

- -

Parameter:

-
-
-

- #string - e -

-
-
- -

Event name.

- -
-
-

Return value:

-
-
-

#boolean:

-
-
- -

If true, FSM cannot do the event.

- -
-
-
- -
-
- -
- -
-

CTLD_CARGO:is(State, If, state)

-
- -

Check if FSM is in state.

- -
-
-

Defined in:

- -

Parameters:

-
-
-

- #string - State -

-
-
- -

State name.

- -
-
-
-
-

- #boolean - If -

-
-
- -

true, FSM is in this state.

- -
-
-
-
-

- state -

-
-
-

-
-
-
- -
-
- -
-

Field(s)

-
-
-
- - #string -CTLD_CARGO.CargoType - - - -
- -
-
-
- - #string -CTLD_CARGO.ClassName - - -
@@ -19278,97 +18951,9 @@ BASE:TraceOnOff( false )
#number -CTLD_CARGO.CratesNeeded +CTLD_CARGO.Stock -

Crates needed to build.

- -
- - -
-
- - #CTLD_CARGO.Enum -CTLD_CARGO.Enum - - - -
- -
-
-
- - #boolean -CTLD_CARGO.HasBeenDropped - -

True if dropped from heli.

- -
- -
-
-
- - #boolean -CTLD_CARGO.HasBeenMoved - -

Flag for moving.

- -
- -
-
-
- - #number -CTLD_CARGO.ID - -

ID of this cargo.

- -
- -
-
-
- - #boolean -CTLD_CARGO.LoadDirectly - -

Flag for direct loading.

- -
- -
-
-
- - #string -CTLD_CARGO.Name - -

Name for menu.

- -
- -
-
-
- - #number -CTLD_CARGO.PerCrateMass - -

Mass in kg

- -
- -
-
-
- - Wrapper.Positionable#POSITIONABLE -CTLD_CARGO.Positionable - -

Representation of cargo in the mission.

+

Number of builds available, -1 for unlimited

@@ -22648,6 +22233,17 @@ BASE:TraceOnOff( false ) +
+ + +
+
+ + #string +CTLD_CARGO.Enum.ENGINEERS + + +
@@ -22709,6 +22305,4049 @@ BASE:TraceOnOff( false )

Function(s)

+ + + +

Type CTLD_ENGINEERING

+
+
+ + + +
+

Field(s)

+
+
+
+ + #string +CTLD_ENGINEERING.ClassName + + + +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + #string +CTLD_ENGINEERING.Name + + + +
+ +
+
+
+ + #string +CTLD_ENGINEERING.State + + + +
+ +
+
+ + +
+
+
+ + #string +CTLD_ENGINEERING.Version + + + +
+ +
+
+ + +
+
+
+ + #string +CTLD_ENGINEERING.lid + + + +
+ +
+
+
+ + #number +CTLD_ENGINEERING.marktimer + + + + +

wait this many secs before trying a crate again

+ +
+ +
+
+

Function(s)

+
+
+ + + +

(Internal) Arrived at crates in reach.

+ + +

Stop group.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Set build status.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Set done status.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Get the status

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+
+

#string:

+
+
+ +

State

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Check the negative status

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Parameter:

+
+
+

+ #string + State +

+
+
+

+
+
+

Return value:

+
+
+

#boolean:

+
+
+ +

Outcome

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Check the status

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Parameter:

+
+
+

+ #string + State +

+
+
+

+
+
+

Return value:

+
+
+

#boolean:

+
+
+ +

Outcome

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Move towards crates in reach.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

Create a new instance.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Parameters:

+
+
+

+ #string + Name +

+
+
+

+
+
+
+
+

+ #string + GroupName +

+
+
+

+
+
+
+
+

+ Wrapper.Group#GROUP + HeliGroup +

+
+
+ +

HeliGroup

+ +
+
+
+
+

+ Wrapper.Unit#UNIT + HeliGroup +

+
+
+ +

HeliUnit

+ +
+
+
+
+

+ HeliUnit +

+
+
+

+
+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Search for crates in reach.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Parameters:

+
+
+

+ #table + crates +

+
+
+ +

Table of found crate Ops.CTLD#CTLD_CARGO objects.

+ +
+
+
+
+

+ #number + number +

+
+
+ +

Number of crates found.

+ +
+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Set the status

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Parameter:

+
+
+

+ #string + State +

+
+
+

+
+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Set start status.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Set stop status.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Return value:

+
+ +
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

(Internal) Return distance in meters between two coordinates.

+ +
+
+

Defined in:

+
+

CTLD_ENGINEERING

+
+

Parameters:

+
+
+

+ Core.Point#COORDINATE + _point1 +

+
+
+ +

Coordinate one

+ +
+
+
+
+

+ Core.Point#COORDINATE + _point2 +

+
+
+ +

Coordinate two

+ +
+
+

Return value:

+
+
+

#number:

+
+
+ +

Distance in meters or -1

+ +
+
+
+ +
+
+ +
+

Field(s)

+
+
+
+ + #string +CTLD_ENGINEERING.ClassName + + + +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+ + #string +CTLD_ENGINEERING.Name + + + +
+ +
+
+
+ + #string +CTLD_ENGINEERING.State + + + +
+ +
+
+ + +
+
+
+ + #string +CTLD_ENGINEERING.Version + + + +
+ +
+
+ + +
+
+
+ + #string +CTLD_ENGINEERING.lid + + + +
+ +
+
+
+ + #number +CTLD_ENGINEERING.marktimer + + + + +

wait this many secs before trying a crate again

+ +
+ +
+
+

Function(s)

+
+
+ + + +

Clear the state of an object.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Object +

+
+
+ +

The object that holds the Value set by the Key.

+ +
+
+
+
+

+ StateName +

+
+
+ +

The key that is should be cleared.

+ +
+
+
+ +
+
+ +
+ + + +

Creation of a Birth Event.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ DCS#Time + EventTime +

+
+
+ +

The time stamp of the event.

+ +
+
+
+
+

+ DCS#Object + Initiator +

+
+
+ +

The initiating object of the event.

+ +
+
+
+
+

+ #string + IniUnitName +

+
+
+ +

The initiating unit name.

+ +
+
+
+
+

+ place +

+
+
+

+
+
+
+
+

+ subplace +

+
+
+

+
+
+
+ +
+
+ +
+ + + +

Creation of a Crash Event.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ DCS#Time + EventTime +

+
+
+ +

The time stamp of the event.

+ +
+
+
+
+

+ DCS#Object + Initiator +

+
+
+ +

The initiating object of the event.

+ +
+
+
+ +
+
+ +
+ + + +

Creation of a Dead Event.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ DCS#Time + EventTime +

+
+
+ +

The time stamp of the event.

+ +
+
+
+
+

+ DCS#Object + Initiator +

+
+
+ +

The initiating object of the event.

+ +
+
+
+ +
+
+ +
+ + + +

Creation of a S_EVENT_PLAYER_ENTER_AIRCRAFT event.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Wrapper.Unit#UNIT + PlayerUnit +

+
+
+ +

The aircraft unit the player entered.

+ +
+
+
+ +
+
+ +
+ + + +

Creation of a Remove Unit Event.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ DCS#Time + EventTime +

+
+
+ +

The time stamp of the event.

+ +
+
+
+
+

+ DCS#Object + Initiator +

+
+
+ +

The initiating object of the event.

+ +
+
+
+ +
+
+ +
+ + + +

Creation of a Takeoff Event.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ DCS#Time + EventTime +

+
+
+ +

The time stamp of the event.

+ +
+
+
+
+

+ DCS#Object + Initiator +

+
+
+ +

The initiating object of the event.

+ +
+
+
+ +
+
+ +
+ + + +

Log an exception which will be traced always.

+ + +

Can be anywhere within the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Returns the event dispatcher

+ +
+
+

Defined in:

+ +

Return value:

+
+ +
+ + + +
+
+
+ +
+
+ +
+ + + +

Remove all subscribed events

+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#BASE:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

Trace a function call.

+ + +

Must be at the beginning of the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Trace a function call level 2.

+ + +

Must be at the beginning of the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Trace a function call level 3.

+ + +

Must be at the beginning of the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Get the ClassID of the class instance.

+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#string:

+
+
+ +

The ClassID of the class instance.

+ +
+
+
+ +
+
+ +
+ + + +

Get the ClassName of the class instance.

+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#string:

+
+
+ +

The ClassName of the class instance.

+ +
+
+
+ +
+
+ +
+ + + +

Get the ClassName + ClassID of the class instance.

+ + +

The ClassName + ClassID is formatted as '%s#%09d'.

+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#string:

+
+
+ +

The ClassName + ClassID of the class instance.

+ +
+
+
+ +
+
+ +
+ + + +

Get the Class Event processing Priority.

+ + +

The Event processing Priority is a number from 1 to 10, +reflecting the order of the classes subscribed to the Event to be processed.

+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#number:

+
+
+ +

The Event processing Priority.

+ +
+
+
+ +
+
+ +
+ + + +

This is the worker method to retrieve the Parent class.

+ + +

Note that the Parent class must be passed to call the parent class method.

+ +
self:GetParent(self):ParentMethod()
+
+
+
+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ #BASE + Child +

+
+
+ +

This is the Child class from which the Parent class needs to be retrieved.

+ +
+
+
+
+

+ #BASE + FromClass +

+
+
+ +

(Optional) The class from which to get the parent.

+ +
+
+

Return value:

+
+
+

#BASE:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

Get a Value given a Key from the Object.

+ + +

Note that if the Object is destroyed, nillified or garbage collected, then the Values and Keys will also be gone.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Object +

+
+
+ +

The object that holds the Value set by the Key.

+ +
+
+
+
+

+ Key +

+
+
+ +

The key that is used to retrieve the value. Note that the key can be a #string, but it can also be any other type!

+ +
+
+

Return value:

+
+
+
+
+ +

The Value retrieved or nil if the Key was not found and thus the Value could not be retrieved.

+ +
+
+
+ +
+
+ +
+ + + +

Subscribe to a DCS Event.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Core.Event#EVENTS + EventID +

+
+
+ +

Event ID.

+ +
+
+
+
+

+ #function + EventFunction +

+
+
+ +

(optional) The function to be called when the event occurs for the unit.

+ +
+
+

Return value:

+
+
+

#BASE:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

Log an information which will be traced always.

+ + +

Can be anywhere within the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

This is the worker method to inherit from a parent class.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Child +

+
+
+ +

is the Child class that inherits.

+ +
+
+
+
+

+ #BASE + Parent +

+
+
+ +

is the Parent class that the Child inherits from.

+ +
+
+

Return value:

+
+
+

#BASE:

+
+
+ +

Child

+ +
+
+
+ +
+
+ +
+ + + +

This is the worker method to check if an object is an (sub)instance of a class.

+ + + +

Examples:

+ +
    +
  • ZONE:New( 'some zone' ):IsInstanceOf( ZONE ) will return true

  • +
  • ZONE:New( 'some zone' ):IsInstanceOf( 'ZONE' ) will return true

  • +
  • ZONE:New( 'some zone' ):IsInstanceOf( 'zone' ) will return true

  • +
  • ZONE:New( 'some zone' ):IsInstanceOf( 'BASE' ) will return true

  • +
  • ZONE:New( 'some zone' ):IsInstanceOf( 'GROUP' ) will return false

  • +
+ + +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ ClassName +

+
+
+ +

is the name of the class or the class itself to run the check against

+ +
+
+

Return value:

+
+
+

#boolean:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

Enquires if tracing is on (for the class).

+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#boolean:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

BASE constructor.

+ + + +

This is an example how to use the BASE:New() constructor in a new class definition when inheriting from BASE.

+ +
function EVENT:New()
+  local self = BASE:Inherit( self, BASE:New() ) -- #EVENT
+  return self
+end
+  
+
+ +
+
+

Defined in:

+ +

Return value:

+
+
+

#BASE:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

Occurs when an object is completely destroyed.

+ + +

initiator : The unit that is was destroyed.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

BDA.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a ground unit captures either an airbase or a farp.

+ + +

initiator : The unit that captured the base +place: The airbase that was captured, can be a FARP or Airbase. When calling place:getCoalition() the faction will already be the new owning faction.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any object is spawned into the mission.

+ + +

initiator : The unit that was spawned

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any aircraft crashes into the ground and is completely destroyed.

+ + +

initiator : The unit that has crashed

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when an object is dead.

+ + +

initiator : The unit that is dead.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Unknown precisely what creates this event, likely tied into newer damage model.

+ + +

Will update this page when new information become available.

+ +
    +
  • initiator: The unit that had the failure.
  • +
+ + +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Discard chair after ejection.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a pilot ejects from an aircraft +initiator : The unit that has ejected

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any aircraft shuts down its engines.

+ + +

initiator : The unit that is stopping its engines.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any aircraft starts its engines.

+ + +

initiator : The unit that is starting its engines.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs whenever an object is hit by a weapon.

+ + +

initiator : The unit object the fired the weapon +weapon: Weapon object that hit the target +target: The Object that was hit.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any system fails on a human controlled aircraft.

+ + +

initiator : The unit that had the failure

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs on the death of a unit.

+ + +

Contains more and different information. Similar to unit_lost it will occur for aircraft before the aircraft crash event occurs.

+ +
    +
  • initiator: The unit that killed the target
  • +
  • target: Target Object
  • +
  • weapon: Weapon Object
  • +
+ + +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when an aircraft lands at an airbase, farp or ship +initiator : The unit that has landed +place: Object that the unit landed on.

+ + +

Can be an Airbase Object, FARP, or Ships

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs shortly after the landing animation of an ejected pilot touching the ground and standing up.

+ + +

Event does not occur if the pilot lands in the water and sub combs to Davey Jones Locker.

+ +
    +
  • initiator: Static object representing the ejected pilot. Place : Aircraft that the pilot ejected from.
  • +
  • place: may not return as a valid object if the aircraft has crashed into the ground and no longer exists.
  • +
  • subplace: is always 0 for unknown reasons.
  • +
+ + +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Landing quality mark.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a new mark was added.

+ + +

MarkID: ID of the mark.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a mark text was changed.

+ + +

MarkID: ID of the mark.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a mark was removed.

+ + +

MarkID: ID of the mark.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a mission ends

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a mission starts

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Weapon add.

+ + +

Fires when entering a mission per pylon with the name of the weapon (double pylons not counted, infinite wep reload not counted.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when the pilot of an aircraft is killed.

+ + +

Can occur either if the player is alive and crashes or if a weapon kills the pilot without completely destroying the plane. +initiator : The unit that the pilot has died in.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when a player enters a slot and takes control of an aircraft.

+ + +

NOTE: This is a workaround of a long standing DCS bug with the PLAYER_ENTER_UNIT event. +initiator : The unit that is being taken control of.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any player assumes direct control of a unit.

+ + +

initiator : The unit that is being taken control of.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any player relieves control of a unit to the AI.

+ + +

initiator : The unit that the player left.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when an aircraft connects with a tanker and begins taking on fuel.

+ + +

initiator : The unit that is receiving fuel.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when an aircraft is finished taking fuel.

+ + +

initiator : The unit that was receiving fuel.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any modification to the "Score" as seen on the debrief menu would occur.

+ + +

There is no information on what values the score was changed to. Event is likely similar to player_comment in this regard.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any unit stops firing its weapon.

+ + +

Event will always correspond with a shooting start event. +initiator : The unit that was doing the shooting.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when any unit begins firing a weapon that has a high rate of fire.

+ + +

Most common with aircraft cannons (GAU-8), autocannons, and machine guns. +initiator : The unit that is doing the shooting. +target: The unit that is being targeted.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs whenever any unit in a mission fires a weapon.

+ + +

But not any machine gun or autocannon based weapon, those are handled by EVENT.ShootingStart.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when an aircraft takes off from an airbase, farp, or ship.

+ + +

initiator : The unit that tookoff +place: Object from where the AI took-off from. Can be an Airbase Object, FARP, or Ships

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Trigger zone.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Occurs when the game thinks an object is destroyed.

+ + + +
    +
  • initiator: The unit that is was destroyed.
  • +
+ + +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTDATA + EventData +

+
+
+ +

The EventData structure.

+ +
+
+
+ +
+
+ +
+ + + +

Schedule a new time event.

+ + +

Note that the schedule will only take place if the scheduler is started. Even for a single schedule event, the scheduler needs to be started also.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ #number + Start +

+
+
+ +

Specifies the amount of seconds that will be waited before the scheduling is started, and the event function is called.

+ +
+
+
+
+

+ #function + SchedulerFunction +

+
+
+ +

The event function to be called when a timer event occurs. The event function needs to accept the parameters specified in SchedulerArguments.

+ +
+
+
+
+

+ #table + ... +

+
+
+ +

Optional arguments that can be given as part of scheduler. The arguments need to be given as a table { param1, param 2, ... }.

+ +
+
+

Return value:

+
+
+

#number:

+
+
+ +

The ScheduleID of the planned schedule.

+ +
+
+
+ +
+
+ +
+ + + +

Schedule a new time event.

+ + +

Note that the schedule will only take place if the scheduler is started. Even for a single schedule event, the scheduler needs to be started also.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ #number + Start +

+
+
+ +

Specifies the amount of seconds that will be waited before the scheduling is started, and the event function is called.

+ +
+
+
+
+

+ #number + Repeat +

+
+
+ +

Specifies the interval in seconds when the scheduler will call the event function.

+ +
+
+
+
+

+ #number + RandomizeFactor +

+
+
+ +

Specifies a randomization factor between 0 and 1 to randomize the Repeat.

+ +
+
+
+
+

+ #number + Stop +

+
+
+ +

Specifies the amount of seconds when the scheduler will be stopped.

+ +
+
+
+
+

+ #function + SchedulerFunction +

+
+
+ +

The event function to be called when a timer event occurs. The event function needs to accept the parameters specified in SchedulerArguments.

+ +
+
+
+
+

+ #table + ... +

+
+
+ +

Optional arguments that can be given as part of scheduler. The arguments need to be given as a table { param1, param 2, ... }.

+ +
+
+

Return value:

+
+
+

#number:

+
+
+ +

The ScheduleID of the planned schedule.

+ +
+
+
+ +
+
+ +
+ + + +

Stops the Schedule.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ #function + SchedulerFunction +

+
+
+ +

The event function to be called when a timer event occurs. The event function needs to accept the parameters specified in SchedulerArguments.

+ +
+
+
+ +
+
+ +
+ + + +

Set the Class Event processing Priority.

+ + +

The Event processing Priority is a number from 1 to 10, +reflecting the order of the classes subscribed to the Event to be processed.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ #number + EventPriority +

+
+
+ +

The Event processing Priority.

+ +
+
+

Return value:

+
+
+

#BASE:

+
+
+ +

self

+ +
+
+
+ +
+
+ +
+ + + +

Set a state or property of the Object given a Key and a Value.

+ + +

Note that if the Object is destroyed, nillified or garbage collected, then the Values and Keys will also be gone.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Object +

+
+
+ +

The object that will hold the Value set by the Key.

+ +
+
+
+
+

+ Key +

+
+
+ +

The key that is used as a reference of the value. Note that the key can be a #string, but it can also be any other type!

+ +
+
+
+
+

+ Value +

+
+
+ +

The value to is stored in the object.

+ +
+
+

Return value:

+
+
+
+
+ +

The Value set.

+ +
+
+
+ +
+
+ +
+ + + +

Trace a function logic level 1.

+ + +

Can be anywhere within the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Trace a function logic level 2.

+ + +

Can be anywhere within the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Trace a function logic level 3.

+ + +

Can be anywhere within the function logic.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+ +
+
+ +
+ + + +

Trace all methods in MOOSE

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ #boolean + TraceAll +

+
+
+ +

true = trace all methods in MOOSE.

+ +
+
+
+ +
+
+ +
+ + + +

Set tracing for a class

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ #string + Class +

+
+
+

+
+
+
+ +
+
+ +
+ + + +

Set tracing for a specific method of class

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ #string + Class +

+
+
+

+
+
+
+
+

+ #string + Method +

+
+
+

+
+
+
+ +
+
+ +
+ + + +

Set trace level

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ #number + Level +

+
+
+

+
+
+
+ +
+
+ +
+ + + +

Set trace off.

+ +
+
+

Defined in:

+ +

Usage:

+
-- Switch the tracing Off
+BASE:TraceOff()
+ +
+ +
+
+ +
+ + + +

Set trace on.

+ +
+
+

Defined in:

+ +

Usage:

+
-- Switch the tracing On
+BASE:TraceOn()
+ +
+ +
+
+ +
+ + + +

Set trace on or off +Note that when trace is off, no BASE.Debug statement is performed, increasing performance! +When Moose is loaded statically, (as one file), tracing is switched off by default.

+ + +

So tracing must be switched on manually in your mission if you are using Moose statically. +When moose is loading dynamically (for moose class development), tracing is switched on by default.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ #boolean + TraceOnOff +

+
+
+ +

Switch the tracing on or off.

+ +
+
+

Usage:

+
-- Switch the tracing On
+BASE:TraceOnOff( true )
+
+-- Switch the tracing Off
+BASE:TraceOnOff( false )
+ +
+ +
+
+ +
+ + + +

UnSubscribe to a DCS event.

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ Core.Event#EVENTS + EventID +

+
+
+ +

Event ID.

+ +
+
+

Return value:

+
+
+

#BASE:

+
+
+ + + +
+
+
+ +
+
+ +
+ + + +

Trace a function call.

+ + +

This function is private.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+
+

+ DebugInfoCurrentParam +

+
+
+

+
+
+
+
+

+ DebugInfoFromParam +

+
+
+

+
+
+
+ +
+
+ +
+ + + +

Trace a function logic.

+ +
+
+

Defined in:

+ +

Parameters:

+
+
+

+ Arguments +

+
+
+ +

A #table or any field.

+ +
+
+
+
+

+ DebugInfoCurrentParam +

+
+
+

+
+
+
+
+

+ DebugInfoFromParam +

+
+
+

+
+
+
+ +
+
+ +
+ + + + + + +

TODO: Complete DCS#Event structure.
+- The main event handling function... This function captures all events generated for the class. + @param #BASE self + @param DCS#Event event

+ +
+
+

Defined in:

+ +

Parameter:

+
+
+

+ event +

+
+
+

+
+
+
+ +
+
+
diff --git a/Documentation/Tasking.Task_A2A_Dispatcher.html b/Documentation/Tasking.Task_A2A_Dispatcher.html index 32df93725..d9dfd7c14 100644 --- a/Documentation/Tasking.Task_A2A_Dispatcher.html +++ b/Documentation/Tasking.Task_A2A_Dispatcher.html @@ -2814,7 +2814,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- + #boolean TASK_A2A_DISPATCHER.FlashNewTask @@ -3539,7 +3539,7 @@ If too large, any airborne cap may not be able to reach the detected target area
- + #boolean TASK_A2A_DISPATCHER.FlashNewTask @@ -4715,7 +4715,7 @@ If too large, any airborne cap may not be able to reach the detected target area
- + #boolean TASK_A2A_DISPATCHER.FlashNewTask @@ -6197,7 +6197,7 @@ If too large, any airborne cap may not be able to reach the detected target area
- + #boolean TASK_A2A_DISPATCHER.FlashNewTask diff --git a/Documentation/Tasking.Task_Cargo.html b/Documentation/Tasking.Task_Cargo.html index 7e241d1db..ff52e0a12 100644 --- a/Documentation/Tasking.Task_Cargo.html +++ b/Documentation/Tasking.Task_Cargo.html @@ -3113,7 +3113,7 @@ based on the tasking capabilities defined in
- Cargo.Cargo#CARGO + FSM_PROCESS.Cargo diff --git a/Documentation/Tasking.Task_Cargo_Dispatcher.html b/Documentation/Tasking.Task_Cargo_Dispatcher.html index f68989bd5..1d543c49e 100644 --- a/Documentation/Tasking.Task_Cargo_Dispatcher.html +++ b/Documentation/Tasking.Task_Cargo_Dispatcher.html @@ -3091,7 +3091,18 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau
- #table + #number +TASK_CARGO_DISPATCHER.CountCSAR + + + +
+ +
+
+
+ + TASK_CARGO_DISPATCHER.DefaultDeployZones @@ -4170,7 +4181,18 @@ This method can only be used once!

- #table + #number +TASK_CARGO_DISPATCHER.CountCSAR + + + +
+ +
+
+
+ + TASK_CARGO_DISPATCHER.DefaultDeployZones @@ -5028,7 +5050,18 @@ This method can only be used once!

- #table + #number +TASK_CARGO_DISPATCHER.CountCSAR + + + +
+ +
+
+
+ + TASK_CARGO_DISPATCHER.DefaultDeployZones @@ -6521,7 +6554,18 @@ This method can only be used once!

- #table + #number +TASK_CARGO_DISPATCHER.CountCSAR + + + +
+ +
+
+
+ + TASK_CARGO_DISPATCHER.DefaultDeployZones diff --git a/Documentation/Wrapper.Client.html b/Documentation/Wrapper.Client.html index 760b3d9e7..3aa327626 100644 --- a/Documentation/Wrapper.Client.html +++ b/Documentation/Wrapper.Client.html @@ -4226,7 +4226,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau -

Alive2.

+

Alive.

@@ -5340,7 +5340,7 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau -

Alive2.

+

Alive.

@@ -7604,7 +7604,7 @@ If the Unit is alive but not active, false is returned.

-

Alive2.

+

Alive.

@@ -16165,7 +16165,7 @@ Note that when the WayPoint parameter is used, the new start mission waypoint of -

Alive2.

+

Alive.

@@ -19649,7 +19649,7 @@ Coordinates are dependent on the position of the maps origin.

-

Alive2.

+

Alive.

@@ -20323,7 +20323,7 @@ If the Identifiable is alive, true is returned.

-

Alive2.

+

Alive.

@@ -20603,7 +20603,7 @@ If the Identifiable is alive, true is returned.

-

Alive2.

+

Alive.

diff --git a/Documentation/Wrapper.Positionable.html b/Documentation/Wrapper.Positionable.html index 27828d106..598362115 100644 --- a/Documentation/Wrapper.Positionable.html +++ b/Documentation/Wrapper.Positionable.html @@ -3511,17 +3511,6 @@ When Moose is loaded statically, (as one file), tracing is switched off by defau -
- -
- @@ -6909,17 +6898,6 @@ Coordinates are dependent on the position of the maps origin.

-
- -
- @@ -7497,17 +7475,6 @@ If the Identifiable is alive, true is returned.

-
- -
-
-
@@ -7691,17 +7658,6 @@ If the Identifiable is alive, true is returned.

-
- -
-
-