mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Merge remote-tracking branch 'origin/master' into branch
This commit is contained in:
commit
9d55cb6f94
@ -4460,6 +4460,23 @@ do -- SET_CLIENT
|
||||
return self
|
||||
end
|
||||
|
||||
--- Builds a set of units which exist and are alive.
|
||||
-- @param #SET_CLIENT self
|
||||
-- @return #SET_CLIENT self
|
||||
function SET_CLIENT:FilterAlive()
|
||||
self:FilterFunction(
|
||||
function(unit)
|
||||
if unit and unit:IsExist() and unit:IsAlive() then
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
)
|
||||
return self
|
||||
end
|
||||
|
||||
|
||||
--- Builds a set of clients in zones.
|
||||
-- @param #SET_CLIENT self
|
||||
-- @param #table Zones Table of Core.Zone#ZONE Zone objects, or a Core.Set#SET_ZONE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user