-Add 'Buta's_Airboss.lua' for custom Airboss functions. -Add 'Localizations.lua' for dictionaries of other langs. -Update MIZ file with 3 AR tankers.
41 lines
827 B
Lua
41 lines
827 B
Lua
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 |