-Add mist for assist.
-Add 'Buta's_Airboss.lua' for custom Airboss functions. -Add 'Localizations.lua' for dictionaries of other langs. -Update MIZ file with 3 AR tankers.
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
BAirboss = {
|
||||
carrierUnit = nil,
|
||||
|
||||
}
|
||||
|
||||
do
|
||||
function BAirboss:New(carrierUnit)
|
||||
if not carrierUnit then return end
|
||||
|
||||
if type(carrierUnit) == 'string' then
|
||||
self.carrierGroup = Unit.getByName(carrierUnit)
|
||||
else
|
||||
self.carrierGroup = carrierUnit
|
||||
end
|
||||
|
||||
if not self.carrierUnit then
|
||||
local errMsg = 'ERROR: Carrier unit %s is not found in mission.'
|
||||
errMsg = string.format(Localizations:translate(errMsg,'cn'),carrierUnit)
|
||||
|
||||
trigger.action.outText(errMsg,120)
|
||||
env.error(errMsg)
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function BAirboss:turnIntoWind()
|
||||
|
||||
end
|
||||
|
||||
function BAirboss:setTACAN(Channel,MorseCode)
|
||||
|
||||
end
|
||||
|
||||
function BAirboss:setICLS(Channel,Mode,MorseCode)
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user