mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
13 lines
410 B
Lua
13 lines
410 B
Lua
--- 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
|
|
)
|