- Improved respawn/despawn
- Added stuck check
This commit is contained in:
Frank
2024-04-02 17:33:41 +02:00
parent a5632ec3a4
commit 1fdb3b7daa
4 changed files with 332 additions and 364 deletions

View File

@@ -359,14 +359,15 @@ end
-- @param #GROUP self
-- @return DCS#Group The DCS Group.
function GROUP:GetDCSObject()
-- Get DCS group.
local DCSGroup = Group.getByName( self.GroupName )
if DCSGroup then
return DCSGroup
else
env.error("ERROR: Could not get DCS group object!")
end
self:E(string.format("ERROR: Could not get DCS group object of group %s because DCS object could not be found!", tostring(self.GroupName)))
return nil
end