This commit is contained in:
FlightControl
2019-01-09 07:36:36 +01:00
parent 7a8197208c
commit 6edcc58b9a
2 changed files with 54 additions and 35 deletions

View File

@@ -1233,7 +1233,7 @@ do -- DETECTION_BASE
-- @param DCS#Unit.Category Category The category of the unit.
-- @return #boolean true if there are friendlies nearby
function DETECTION_BASE:IsFriendliesNearBy( DetectedItem, Category )
--self:F( { "FriendliesNearBy Test", DetectedItem.FriendliesNearBy } )
self:F( { "FriendliesNearBy Test", DetectedItem.FriendliesNearBy } )
return ( DetectedItem.FriendliesNearBy and DetectedItem.FriendliesNearBy[Category] ~= nil ) or false
end