mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
Next step of folder restructure
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
--- This test demonstrates the use(s) of the SwitchWayPoint method of the GROUP class.
|
||||
|
||||
local HeliGroup = GROUP:FindByName( "Helicopter" )
|
||||
|
||||
local AttackGroup = GROUP:FindByName( "AttackGroup" )
|
||||
|
||||
local AttackUnits = AttackGroup:GetUnits()
|
||||
|
||||
local Tasks = {}
|
||||
|
||||
for i = 1, #AttackUnits do
|
||||
|
||||
local AttackUnit = AttackGroup:GetUnit( i )
|
||||
Tasks[#Tasks+1] = HeliGroup:TaskAttackUnit( AttackUnit )
|
||||
end
|
||||
|
||||
Tasks[#Tasks+1] = HeliGroup:TaskFunction( "_Resume", { "''" } )
|
||||
|
||||
--- @param Wrapper.Group#GROUP HeliGroup
|
||||
function _Resume( HeliGroup )
|
||||
env.info( '_Resume' )
|
||||
|
||||
HeliGroup:MessageToAll( "Resuming",10,"Info")
|
||||
end
|
||||
|
||||
HeliGroup:PushTask(
|
||||
HeliGroup:TaskCombo(
|
||||
Tasks
|
||||
), 30
|
||||
)
|
||||
Binary file not shown.
Reference in New Issue
Block a user