mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
DCS, Detection, Controllable, Group
This commit is contained in:
@@ -856,7 +856,7 @@ function GROUP:IsCompletelyInZone( Zone )
|
||||
return true
|
||||
end
|
||||
|
||||
--- Returns true if some units of the group are within a @{Zone}.
|
||||
--- Returns true if some but NOT ALL units of the group are within a @{Zone}.
|
||||
-- @param #GROUP self
|
||||
-- @param Core.Zone#ZONE_BASE Zone The zone to test.
|
||||
-- @return #boolean Returns true if the Group is partially within the @{Core.Zone#ZONE_BASE}
|
||||
@@ -884,6 +884,14 @@ function GROUP:IsPartlyInZone( Zone )
|
||||
end
|
||||
end
|
||||
|
||||
--- Returns true if part or all units of the group are within a @{Zone}.
|
||||
-- @param #GROUP self
|
||||
-- @param Core.Zone#ZONE_BASE Zone The zone to test.
|
||||
-- @return #boolean Returns true if the Group is partially or completely within the @{Core.Zone#ZONE_BASE}.
|
||||
function GROUP:IsPartlyOrCompletelyInZone( Zone )
|
||||
return self:IsPartlyInZone(Zone) or self:IsCompletelyInZone(Zone)
|
||||
end
|
||||
|
||||
--- Returns true if none of the group units of the group are within a @{Zone}.
|
||||
-- @param #GROUP self
|
||||
-- @param Core.Zone#ZONE_BASE Zone The zone to test.
|
||||
|
||||
Reference in New Issue
Block a user