mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd242bc1fe | ||
|
|
34d73af8bf | ||
|
|
604255bfba | ||
|
|
cfc0367c55 |
@@ -1024,16 +1024,18 @@ do -- AI_A2A_DISPATCHER
|
|||||||
--- @param #AI_A2A_DISPATCHER self
|
--- @param #AI_A2A_DISPATCHER self
|
||||||
function AI_A2A_DISPATCHER:onafterStart( From, Event, To )
|
function AI_A2A_DISPATCHER:onafterStart( From, Event, To )
|
||||||
|
|
||||||
self:GetParent( self ).onafterStart( self, From, Event, To )
|
self:GetParent( self, AI_A2A_DISPATCHER ).onafterStart( self, From, Event, To )
|
||||||
|
|
||||||
-- Spawn the resources.
|
-- Spawn the resources.
|
||||||
for SquadronName, DefenderSquadron in pairs( self.DefenderSquadrons ) do
|
for SquadronName, DefenderSquadron in pairs( self.DefenderSquadrons ) do
|
||||||
DefenderSquadron.Resource = {}
|
DefenderSquadron.Resource = {}
|
||||||
|
if DefenderSquadron.ResourceCount then
|
||||||
for Resource = 1, DefenderSquadron.ResourceCount do
|
for Resource = 1, DefenderSquadron.ResourceCount do
|
||||||
self:ParkDefender( DefenderSquadron )
|
self:ParkDefender( DefenderSquadron )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- @param #AI_A2A_DISPATCHER self
|
--- @param #AI_A2A_DISPATCHER self
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ do -- DESIGNATE
|
|||||||
self.Designating = {}
|
self.Designating = {}
|
||||||
self:SetDesignateName()
|
self:SetDesignateName()
|
||||||
|
|
||||||
self.LaseDuration = 60
|
self:SetLaseDuration() -- Default is 120 seconds.
|
||||||
|
|
||||||
self:SetFlashStatusMenu( false )
|
self:SetFlashStatusMenu( false )
|
||||||
self:SetFlashDetectionMessages( true )
|
self:SetFlashDetectionMessages( true )
|
||||||
@@ -677,6 +677,14 @@ do -- DESIGNATE
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Set the lase duration for designations.
|
||||||
|
-- @param #DESIGNATE self
|
||||||
|
-- @param #number LaseDuration The time in seconds a lase will continue to hold on target. The default is 120 seconds.
|
||||||
|
-- @return #DESIGNATE
|
||||||
|
function DESIGNATE:SetLaseDuration( LaseDuration )
|
||||||
|
self.LaseDuration = LaseDuration or 120
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- Generate an array of possible laser codes.
|
--- Generate an array of possible laser codes.
|
||||||
-- Each new lase will select a code from this table.
|
-- Each new lase will select a code from this table.
|
||||||
|
|||||||
Reference in New Issue
Block a user