PyBridge Navigation

This commit is contained in:
Frank
2026-08-31 13:57:50 +02:00
parent f5aef8edb9
commit 8cf47dc42d
3 changed files with 660 additions and 4 deletions
+7 -2
View File
@@ -563,6 +563,8 @@ function OPSGROUP:New(group)
self:E(self.lid.."ERROR: GROUP does not exist! Returning nil")
return nil
end
else
self:E(self.lid.."ERROR: GROUP is nil!")
end
if UTILS.IsInstanceOf(group,"OPSGROUP") then
@@ -575,10 +577,13 @@ function OPSGROUP:New(group)
-- Set DCS group and controller.
self.dcsgroup=self:GetDCSGroup()
self.controller=self.dcsgroup:getController()
if self.dcsgroup then
self.controller=self.dcsgroup:getController()
end
-- Category.
self.category=self.dcsgroup:getCategory()
--self.category=self.dcsgroup:getCategory()
self.category=self.group:GetCategory()
if self.category==Group.Category.GROUND then
self.isArmygroup=true
elseif self.category==Group.Category.TRAIN then