diff --git a/Moose Development/Moose/Functional/RAT.lua b/Moose Development/Moose/Functional/RAT.lua index 5a3d9919a..e11773099 100644 --- a/Moose Development/Moose/Functional/RAT.lua +++ b/Moose Development/Moose/Functional/RAT.lua @@ -151,6 +151,7 @@ -- @field #boolean parkingscanscenery If true, area around parking spots is scanned for scenery objects. Default is false. -- @field #boolean parkingverysafe If true, parking spots are considered as non-free until a possible aircraft has left and taken off. Default false. -- @field #boolean despawnair If true, aircraft are despawned when they reach their destination zone. Default. +-- @field #boolean eplrs If true, turn on EPLSR datalink for the RAT group. -- @extends Core.Spawn#SPAWN --- Implements an easy to use way to randomly fill your map with AI aircraft. @@ -430,6 +431,7 @@ RAT={ parkingscanscenery=false, -- Scan parking spots for scenery obstacles. parkingverysafe=false, -- Very safe option. despawnair=true, + eplrs=false, } ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- @@ -548,7 +550,7 @@ RAT.id="RAT | " --- RAT version. -- @list version RAT.version={ - version = "2.3.6", + version = "2.3.7", print = true, } @@ -1642,6 +1644,19 @@ function RAT:Invisible() return self end +--- Turn EPLSR datalink on/off. +-- @param #RAT self +-- @param #boolean switch If true (or nil), turn EPLRS on. +-- @return #RAT RAT self object. +function RAT:SetEPLSR(switch) + if switch==nil or switch==true then + self.eplrs=true + else + self.eplrs=false + end + return self +end + --- Aircraft are immortal. -- @param #RAT self -- @return #RAT RAT self object. @@ -2164,6 +2179,11 @@ function RAT:_SpawnWithRoute(_departure, _destination, _takeoff, _landing, _live self:_CommandImmortal(group, true) end + -- Set group to be immortal. + if self.eplrs then + group:CommandEPLRS(true, 1) + end + -- Set ROE, default is "weapon hold". self:_SetROE(group, self.roe) diff --git a/Moose Development/Moose/Ops/Airboss.lua b/Moose Development/Moose/Ops/Airboss.lua index e01b5288d..996ddff0d 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -72,6 +72,7 @@ -- * [[MOOSE] Airboss - Groove Testing (WIP)](https://www.youtube.com/watch?v=94KHQxxX3UI) -- * [[MOOSE] Airboss - Groove Test A-4E Community Mod](https://www.youtube.com/watch?v=ZbjD7FHiaHo) -- * [[MOOSE] Airboss - Groove Test: On-the-fly LSO Grading](https://www.youtube.com/watch?v=Xgs1hwDcPyM) +-- * [[MOOSE] Airboss - Carrier Auto Steam Into Wind](https://www.youtube.com/watch?v=IsU8dYgsp90) -- -- ### Lex explaining Boat Ops: --