mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
ARTY v1.1.7 & AIRBASE
- Improved ARTY._PassingWaypoint function. - Corrected AIRBASE.Ras_Al_Khaimah
This commit is contained in:
parent
740ee74f61
commit
6208c79d1f
@ -693,7 +693,7 @@ ARTY.db={
|
||||
|
||||
--- Arty script version.
|
||||
-- @field #string version
|
||||
ARTY.version="1.1.6"
|
||||
ARTY.version="1.1.7"
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@ -3848,26 +3848,23 @@ end
|
||||
-- @param #boolean final True if it is the final waypoint.
|
||||
function ARTY._PassingWaypoint(group, arty, i, final)
|
||||
|
||||
-- Debug message.
|
||||
local text=string.format("%s, passing waypoint %d.", group:GetName(), i)
|
||||
if final then
|
||||
text=string.format("%s, arrived at destination.", group:GetName())
|
||||
end
|
||||
arty:T(self.lid..text)
|
||||
if group and group:IsAlive() then
|
||||
|
||||
--[[
|
||||
if final then
|
||||
MESSAGE:New(text, 10):ToCoalitionIf(group:GetCoalition(), arty.Debug or arty.report)
|
||||
else
|
||||
MESSAGE:New(text, 10):ToAllIf(arty.Debug)
|
||||
end
|
||||
]]
|
||||
local groupname=tostring(group:GetName())
|
||||
|
||||
-- Arrived event.
|
||||
if final and arty.groupname==group:GetName() then
|
||||
arty:Arrived()
|
||||
end
|
||||
-- Debug message.
|
||||
local text=string.format("%s, passing waypoint %d.", groupname, i)
|
||||
if final then
|
||||
text=string.format("%s, arrived at destination.", groupname)
|
||||
end
|
||||
arty:T(arty.lid..text)
|
||||
|
||||
-- Arrived event.
|
||||
if final and arty.groupname==groupname then
|
||||
arty:Arrived()
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
--- Relocate to another position, e.g. after an engagement to avoid couter strikes.
|
||||
|
||||
@ -275,7 +275,7 @@ AIRBASE.PersianGulf = {
|
||||
["Lavan_Island_Airport"] = "Lavan Island Airport",
|
||||
["Liwa_Airbase"] = "Liwa Airbase",
|
||||
["Qeshm_Island"] = "Qeshm Island",
|
||||
["Ras_Al_Khaimah_International_Airport"] = "Ras Al Khaimah International Airport",
|
||||
["Ras_Al_Khaimah"] = "Ras Al Khaimah",
|
||||
["Sas_Al_Nakheel_Airport"] = "Sas Al Nakheel Airport",
|
||||
["Sharjah_Intl"] = "Sharjah Intl",
|
||||
["Shiraz_International_Airport"] = "Shiraz International Airport",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user