This commit is contained in:
Applevangelist 2024-05-13 09:56:48 +02:00
parent 5d67009b18
commit 662885aaa6
3 changed files with 6 additions and 5 deletions

View File

@ -97,7 +97,7 @@
TIRESIAS = {
ClassName = "TIRESIAS",
debug = false,
version = "0.0.4",
version = "0.0.5",
Interval = 20,
GroundSet = nil,
VehicleSet = nil,
@ -203,7 +203,7 @@ function TIRESIAS:AddExceptionSet(Set)
}
exceptions:AddGroup(grp,true)
end
BASE:I("TIRESIAS: Added exception group: "..grp:GetName())
BASE:T("TIRESIAS: Added exception group: "..grp:GetName())
end
)
return self
@ -391,6 +391,7 @@ function TIRESIAS:_SwitchOnGroups(group,radius)
if ground:CountAlive() > 0 then
ground:ForEachGroupAlive(
function(grp)
local name = grp:GetName()
if grp.Tiresias and grp.Tiresias.type and (not grp.Tiresias.exception == true ) then
if grp.Tiresias.invisible == true then
grp:SetCommandInvisible(false)
@ -407,7 +408,7 @@ function TIRESIAS:_SwitchOnGroups(group,radius)
end
--BASE:I(string.format("TIRESIAS - Switch on %s %s (Exception %s)",tostring(grp.Tiresias.type),grp:GetName(),tostring(grp.Tiresias.exception)))
else
BASE:E("TIRESIAS - This group has not been initialized or is an exception!")
BASE:T("TIRESIAS - This group "..tostring(name).. " has not been initialized or is an exception!")
end
end
)

View File

@ -2109,7 +2109,7 @@ function ARMYGROUP:_InitGroup(Template, Delay)
return
end
self:I(self.lid.."FF Initializing Group")
self:T(self.lid.."FF Initializing Group")
-- Get template of group.
local template=Template or self:_GetTemplate()

View File

@ -367,7 +367,7 @@ function GROUP:GetDCSObject()
return DCSGroup
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)))
self:T2(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