DCS, Detection, Controllable, Group

This commit is contained in:
funkyfranky
2018-07-27 15:08:28 +02:00
parent a09cd6e667
commit 52f429a991
4 changed files with 85 additions and 39 deletions

View File

@@ -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.