Got CARGO working now with new FSM mechanism

This commit is contained in:
FlightControl
2016-12-06 12:05:02 +01:00
parent b72a1c5c6b
commit 3496550cb3
117 changed files with 62 additions and 58 deletions

View File

@@ -0,0 +1,12 @@
--- This test demonstrates the use(s) of the SwitchWayPoint method of the GROUP class.
HeliGroup = GROUP:FindByName( "Helicopter" )
--- Route the helicopter back to the FARP after 60 seconds.
-- We use the SCHEDULER class to do this.
SCHEDULER:New( nil,
function( HeliGroup )
local CommandRTB = HeliGroup:CommandSwitchWayPoint( 2, 8 )
HeliGroup:SetCommand( CommandRTB )
end, { HeliGroup }, 90
)