mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-23 17:55:18 +00:00
Aircraft types now identified no matter the distance
This commit is contained in:
@@ -86,13 +86,12 @@ do
|
|||||||
type = "contact"
|
type = "contact"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Return exact type when aircraft contact is close enough
|
|
||||||
if gCateg == Group.Category.AIRPLANE or gCateg == Group.Category.HELICOPTER then
|
if gCateg == Group.Category.AIRPLANE or gCateg == Group.Category.HELICOPTER then
|
||||||
if distanceToGroup < detectionRange / 2 then
|
-- if distanceToGroup < detectionRange / 2 then
|
||||||
groupInfo.type = Library.objectNames.get(g:getUnit(1))
|
groupInfo.type = Library.objectNames.get(g:getUnit(1))
|
||||||
else
|
-- else
|
||||||
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
-- groupInfo.type = Library.objectNames.getGenericGroup(g)
|
||||||
end
|
-- end
|
||||||
else
|
else
|
||||||
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
groupInfo.type = Library.objectNames.getGenericGroup(g)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user