mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-18 05:05:19 +00:00
Improved logic for unit groups identification
This commit is contained in:
@@ -89,8 +89,12 @@ do
|
||||
}
|
||||
|
||||
-- Return exact type when contact is close enough
|
||||
if distanceToGroup < detectionRange / 2 then
|
||||
groupInfo.type = Library.objectNames.get(g:getUnit(1))
|
||||
if gCateg == Group.Category.AIRPLANE or gCateg == Group.Category.HELICOPTER then
|
||||
if distanceToGroup < detectionRange / 2 then
|
||||
groupInfo.type = Library.objectNames.get(g:getUnit(1))
|
||||
else
|
||||
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
||||
end
|
||||
else
|
||||
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user