mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
commit
This commit is contained in:
parent
0a9eb84264
commit
38f18d7b28
@ -2119,6 +2119,7 @@ end
|
|||||||
-- @param #table WayPoints If WayPoints is given, then use the route.
|
-- @param #table WayPoints If WayPoints is given, then use the route.
|
||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:WayPointInitialize( WayPoints )
|
function CONTROLLABLE:WayPointInitialize( WayPoints )
|
||||||
|
self:F( { WayPoint, WayPointIndex, WayPointFunction } )
|
||||||
|
|
||||||
if WayPoints then
|
if WayPoints then
|
||||||
self.WayPoints = WayPoints
|
self.WayPoints = WayPoints
|
||||||
@ -2179,6 +2180,7 @@ end
|
|||||||
-- @param #number WaitTime The amount seconds to wait before initiating the mission.
|
-- @param #number WaitTime The amount seconds to wait before initiating the mission.
|
||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
|
function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
|
||||||
|
self:F( { WayPoint, WaitTime } )
|
||||||
|
|
||||||
if not WayPoint then
|
if not WayPoint then
|
||||||
WayPoint = 1
|
WayPoint = 1
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160719_2203' )
|
env.info( 'Moose Generation Timestamp: 20160720_1731' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -6072,6 +6072,7 @@ end
|
|||||||
-- @param #table WayPoints If WayPoints is given, then use the route.
|
-- @param #table WayPoints If WayPoints is given, then use the route.
|
||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:WayPointInitialize( WayPoints )
|
function CONTROLLABLE:WayPointInitialize( WayPoints )
|
||||||
|
self:F( { WayPoint, WayPointIndex, WayPointFunction } )
|
||||||
|
|
||||||
if WayPoints then
|
if WayPoints then
|
||||||
self.WayPoints = WayPoints
|
self.WayPoints = WayPoints
|
||||||
@ -6132,6 +6133,7 @@ end
|
|||||||
-- @param #number WaitTime The amount seconds to wait before initiating the mission.
|
-- @param #number WaitTime The amount seconds to wait before initiating the mission.
|
||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
|
function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
|
||||||
|
self:F( { WayPoint, WayPointIndex, WayPointFunction } )
|
||||||
|
|
||||||
if not WayPoint then
|
if not WayPoint then
|
||||||
WayPoint = 1
|
WayPoint = 1
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160719_2203' )
|
env.info( 'Moose Generation Timestamp: 20160720_1731' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -6072,6 +6072,7 @@ end
|
|||||||
-- @param #table WayPoints If WayPoints is given, then use the route.
|
-- @param #table WayPoints If WayPoints is given, then use the route.
|
||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:WayPointInitialize( WayPoints )
|
function CONTROLLABLE:WayPointInitialize( WayPoints )
|
||||||
|
self:F( { WayPoint, WayPointIndex, WayPointFunction } )
|
||||||
|
|
||||||
if WayPoints then
|
if WayPoints then
|
||||||
self.WayPoints = WayPoints
|
self.WayPoints = WayPoints
|
||||||
@ -6132,6 +6133,7 @@ end
|
|||||||
-- @param #number WaitTime The amount seconds to wait before initiating the mission.
|
-- @param #number WaitTime The amount seconds to wait before initiating the mission.
|
||||||
-- @return #CONTROLLABLE
|
-- @return #CONTROLLABLE
|
||||||
function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
|
function CONTROLLABLE:WayPointExecute( WayPoint, WaitTime )
|
||||||
|
self:F( { WayPoint, WayPointIndex, WayPointFunction } )
|
||||||
|
|
||||||
if not WayPoint then
|
if not WayPoint then
|
||||||
WayPoint = 1
|
WayPoint = 1
|
||||||
|
|||||||
@ -1,17 +1,12 @@
|
|||||||
|
|
||||||
local Mission = MISSION:New( "Attack Detect Mission", "High", "Attack Detect Mission Briefing", coalition.side.RED )
|
|
||||||
local Scoring = SCORING:New( "Detect Demo" )
|
local Scoring = SCORING:New( "Detect Demo" )
|
||||||
Mission:AddScoring( Scoring )
|
|
||||||
|
|
||||||
|
local Mission = MISSION:New( "Attack Detect Mission", "High", "Attack Detect Mission Briefing", coalition.side.RED ):AddScoring( Scoring )
|
||||||
|
|
||||||
local FACSet = SET_GROUP:New():FilterPrefixes( "FAC" ):FilterCoalitions("red"):FilterStart()
|
local FACSet = SET_GROUP:New():FilterPrefixes( "FAC" ):FilterCoalitions("red"):FilterStart()
|
||||||
|
|
||||||
local FACDetection = DETECTION_AREAS:New( FACSet, 10000, 3000 )
|
local FACDetection = DETECTION_AREAS:New( FACSet, 10000, 3000 )
|
||||||
|
|
||||||
local AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Attack" ):FilterStart()
|
local AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Attack" ):FilterStart()
|
||||||
|
|
||||||
|
|
||||||
local CommandCenter = GROUP:FindByName( "HQ" )
|
local CommandCenter = GROUP:FindByName( "HQ" )
|
||||||
|
|
||||||
local TaskAssign = DETECTION_DISPATCHER:New( Mission, CommandCenter, AttackGroups, FACDetection )
|
local TaskAssign = DETECTION_DISPATCHER:New( Mission, CommandCenter, AttackGroups, FACDetection )
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user