mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-21 21:17:30 +00:00
AB
This commit is contained in:
@@ -10457,6 +10457,7 @@ function AIRBOSS:_GetZoneHolding(case, stack)
|
|||||||
if self.carriertype==AIRBOSS.CarrierType.TARAWA then
|
if self.carriertype==AIRBOSS.CarrierType.TARAWA then
|
||||||
zoneHolding=ZONE_RADIUS:New("CASE I Holding Zone", self.carrier:GetVec2(), UTILS.NMToMeters(5))
|
zoneHolding=ZONE_RADIUS:New("CASE I Holding Zone", self.carrier:GetVec2(), UTILS.NMToMeters(5))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
-- CASE II/II
|
-- CASE II/II
|
||||||
@@ -13369,6 +13370,7 @@ function AIRBOSS:_GetOnboardNumbers(group, playeronly)
|
|||||||
return numbers
|
return numbers
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Get Tower frequency of carrier.
|
--- Get Tower frequency of carrier.
|
||||||
-- @param #AIRBOSS self
|
-- @param #AIRBOSS self
|
||||||
function AIRBOSS:_GetTowerFrequency()
|
function AIRBOSS:_GetTowerFrequency()
|
||||||
|
|||||||
@@ -318,6 +318,30 @@ function UNIT:GetCallsign()
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Check if an (air) unit is a client or player slot. Information is retrieved from the group template.
|
||||||
|
-- @param #UNIT self
|
||||||
|
-- @return #boolean If true, unit is associated with a client or player slot.
|
||||||
|
function UNIT:IsPlayer()
|
||||||
|
|
||||||
|
-- Get group.
|
||||||
|
local group=self:GetGroup()
|
||||||
|
|
||||||
|
-- Units of template group.
|
||||||
|
local units=group:GetTemplate().units
|
||||||
|
|
||||||
|
-- Get numbers.
|
||||||
|
for _,unit in pairs(units) do
|
||||||
|
|
||||||
|
-- Check if unit name matach and skill is Client or Player.
|
||||||
|
if unit.name==self:GetName() and (unit.skill=="Client" or unit.skill=="Player") then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Returns name of the player that control the unit or nil if the unit is controlled by A.I.
|
--- Returns name of the player that control the unit or nil if the unit is controlled by A.I.
|
||||||
-- @param #UNIT self
|
-- @param #UNIT self
|
||||||
|
|||||||
Reference in New Issue
Block a user