mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Cleanup
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
--
|
||||
-- ===
|
||||
-- @module Functional.Rat
|
||||
-- @module RAT.JPG
|
||||
-- @image RAT.JPG
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--- RAT class
|
||||
@@ -1663,7 +1663,7 @@ end
|
||||
|
||||
--- Initialize basic parameters of the aircraft based on its (template) group in the mission editor.
|
||||
-- @param #RAT self
|
||||
-- @param Dcs.DCSWrapper.Group#Group DCSgroup Group of the aircraft in the mission editor.
|
||||
-- @param DCS#Group DCSgroup Group of the aircraft in the mission editor.
|
||||
function RAT:_InitAircraft(DCSgroup)
|
||||
self:F2(DCSgroup)
|
||||
|
||||
@@ -3762,11 +3762,11 @@ end
|
||||
function RAT:_Destroy(group)
|
||||
self:F2(group)
|
||||
|
||||
local DCSGroup = group:GetDCSObject() -- Dcs.DCSGroup#Group
|
||||
local DCSGroup = group:GetDCSObject() -- DCS#Group
|
||||
|
||||
if DCSGroup and DCSGroup:isExist() then
|
||||
|
||||
--local DCSUnit = DCSGroup:getUnit(1) -- Dcs.DCSUnit#Unit
|
||||
--local DCSUnit = DCSGroup:getUnit(1) -- DCS#Unit
|
||||
--if DCSUnit then
|
||||
-- self:_CreateEventDead(timer.getTime(), DCSUnit)
|
||||
--end
|
||||
@@ -3797,8 +3797,8 @@ end
|
||||
|
||||
--- Create a Dead event.
|
||||
-- @param #RAT self
|
||||
-- @param Dcs.DCSTypes#Time EventTime The time stamp of the event.
|
||||
-- @param Dcs.DCSWrapper.Object#Object Initiator The initiating object of the event.
|
||||
-- @param DCS#Time EventTime The time stamp of the event.
|
||||
-- @param DCS#Object Initiator The initiating object of the event.
|
||||
function RAT:_CreateEventDead(EventTime, Initiator)
|
||||
self:F( { EventTime, Initiator } )
|
||||
|
||||
@@ -4030,11 +4030,11 @@ end
|
||||
|
||||
--- Orbit at a specified position at a specified alititude with a specified speed.
|
||||
-- @param #RAT self
|
||||
-- @param Dcs.DCSTypes#Vec2 P1 The point to hold the position.
|
||||
-- @param DCS#Vec2 P1 The point to hold the position.
|
||||
-- @param #number Altitude The altitude ASL at which to hold the position.
|
||||
-- @param #number Speed The speed flying when holding the position in m/s.
|
||||
-- @param #number Duration Duration of holding pattern in seconds.
|
||||
-- @return Dcs.DCSTasking.Task#Task DCSTask
|
||||
-- @return DCS#Task DCSTask
|
||||
function RAT:_TaskHolding(P1, Altitude, Speed, Duration)
|
||||
|
||||
--local LandHeight = land.getHeight(P1)
|
||||
|
||||
Reference in New Issue
Block a user