Depends on (#30)

* Added mission dependencies within a stage
This commit is contained in:
2025-05-10 01:22:55 +02:00
committed by GitHub
parent 880816193d
commit c7c532a08a
9 changed files with 169 additions and 40 deletions
+2 -1
View File
@@ -529,7 +529,7 @@ do -- INIT DCS_UTIL
end
---checks if the groupname is a static group
---@param groupName any
---@param groupName string
function DCS_UTIL.IsGroupStatic(groupName)
if DCS_UTIL.__miz_groups[groupName] then
return DCS_UTIL.__miz_groups[groupName].category == 5;
@@ -555,6 +555,7 @@ do -- INIT DCS_UTIL
end
---destroy the given unit
---@param unitName string
function DCS_UTIL.DestroyUnit(unitName)
if DCS_UTIL.IsGroupStatic(unitName) == true then
local object = StaticObject.getByName(unitName)