mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
[ADDED] UNIT:IsEWR()
This commit is contained in:
parent
a2b650a9e3
commit
c79b5c37c4
@ -1895,6 +1895,21 @@ function UNIT:IsSAM()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- [GROUND] Determine if a UNIT is a EWR unit
|
||||||
|
-- @param #UNIT self
|
||||||
|
-- @return #boolean IsEWR True if EWR, else false
|
||||||
|
function UNIT:IsEWR()
|
||||||
|
if self:IsGround() then
|
||||||
|
local DCSUnit = self:GetDCSObject()
|
||||||
|
|
||||||
|
if DCSUnit then
|
||||||
|
local attrs = DCSUnit:getDesc().attributes
|
||||||
|
return attrs["EWR"] == true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
--- [GROUND] Determine if a UNIT is a AAA unit, i.e. has no radar or optical tracker but the AAA = true or the "Mobile AAA" = true attribute.
|
--- [GROUND] Determine if a UNIT is a AAA unit, i.e. has no radar or optical tracker but the AAA = true or the "Mobile AAA" = true attribute.
|
||||||
-- @param #UNIT self
|
-- @param #UNIT self
|
||||||
-- @return #boolean IsAAA True if AAA, else false
|
-- @return #boolean IsAAA True if AAA, else false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user