mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Found a solution to avoid having to install MOOSE.
Now MOOSE can be copied into the mission file, but you'll need to include a "do file" action of moose.lua in the mission file and copy the rest of the MOOSE files to the MIZ file.
This commit is contained in:
39
Moose/SlingLoadHookTask.lua
Normal file
39
Moose/SlingLoadHookTask.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
--- A SLINGLOADHOOKTASK will orchestrate the sling-load hook activity to slingload a CARGO from a specific landing zone(s).
|
||||
-- @classmod SLINGLOADHOOKTASK
|
||||
|
||||
Include.File("Task")
|
||||
|
||||
SLINGLOADHOOKTASK = {
|
||||
ClassName = "SLINGLOADHOOKTASK",
|
||||
GoalVerb = "Hook and Sling Cargo"
|
||||
}
|
||||
|
||||
--- Creates a new SLINGLOADHOOKTASK.
|
||||
-- @tparam table{string,...}|string LandingZones Table or name of the zone(s) where Cargo is to be loaded.
|
||||
-- @tparam table{string,...)|string CargoPrefixes is the name or prefix of the name of the Cargo objects defined within the DCS ME.
|
||||
-- @treturn SLINGLOADHOOKTASK
|
||||
function SLINGLOADHOOKTASK:New( LandingZones, CargoPrefixes )
|
||||
trace.f(self.ClassName)
|
||||
|
||||
local self = BASE:Inherit( self, TASK:New() )
|
||||
|
||||
self.Name = 'Hook and Sling Cargo'
|
||||
self.TaskBriefing = "Task: Hook"
|
||||
|
||||
if type( LandingZones ) == "table" then
|
||||
self.LandingZones = LandingZones
|
||||
else
|
||||
self.LandingZones = { LandingZones }
|
||||
end
|
||||
|
||||
if type( CargoPrefixes ) == "table" then
|
||||
self.CargoPrefixes = CargoPrefixes
|
||||
else
|
||||
self.CargoPrefixes = { CargoPrefixes }
|
||||
end
|
||||
|
||||
self.Stages = { STAGEBRIEF:New(), STAGESTART:New(), STAGEROUTE:New(), STAGE_SLINGLOAD_HOOK:New(), STAGEDONE:New() }
|
||||
self:SetStage( 1 )
|
||||
|
||||
return self
|
||||
end
|
||||
Reference in New Issue
Block a user