mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-20 16:41:44 +00:00
Merge pull request #2549 from hawaiianryan808/master-ng
Add a new SetOptionJettisonEmptyTanks() method to CONTROLLABLE class.
This commit is contained in:
@@ -4314,6 +4314,19 @@ function CONTROLLABLE:OptionEngageRange( EngageRange )
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- [AIR] Set if aircraft is allowed to drop empty fuel tanks - set to true to allow, and false to forbid it.
|
||||||
|
-- @param #CONTROLLABLE self
|
||||||
|
-- @return #CONTROLLABLE self
|
||||||
|
function CONTROLLABLE:SetOptionJettisonEmptyTanks(Switch)
|
||||||
|
self:F2( { self.ControllableName } )
|
||||||
|
-- Set default if not specified.
|
||||||
|
Switch = Switch or true
|
||||||
|
if self:IsAir() then
|
||||||
|
self:SetOption( AI.Option.Air.id.JETT_TANKS_IF_EMPTY, Switch )
|
||||||
|
end
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- [AIR] Set how the AI lands on an airfield. Here: Straight in.
|
--- [AIR] Set how the AI lands on an airfield. Here: Straight in.
|
||||||
-- @param #CONTROLLABLE self
|
-- @param #CONTROLLABLE self
|
||||||
-- @return #CONTROLLABLE self
|
-- @return #CONTROLLABLE self
|
||||||
|
|||||||
Reference in New Issue
Block a user