mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
xxx
This commit is contained in:
parent
5d67009b18
commit
662885aaa6
@ -97,7 +97,7 @@
|
|||||||
TIRESIAS = {
|
TIRESIAS = {
|
||||||
ClassName = "TIRESIAS",
|
ClassName = "TIRESIAS",
|
||||||
debug = false,
|
debug = false,
|
||||||
version = "0.0.4",
|
version = "0.0.5",
|
||||||
Interval = 20,
|
Interval = 20,
|
||||||
GroundSet = nil,
|
GroundSet = nil,
|
||||||
VehicleSet = nil,
|
VehicleSet = nil,
|
||||||
@ -203,7 +203,7 @@ function TIRESIAS:AddExceptionSet(Set)
|
|||||||
}
|
}
|
||||||
exceptions:AddGroup(grp,true)
|
exceptions:AddGroup(grp,true)
|
||||||
end
|
end
|
||||||
BASE:I("TIRESIAS: Added exception group: "..grp:GetName())
|
BASE:T("TIRESIAS: Added exception group: "..grp:GetName())
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
return self
|
return self
|
||||||
@ -391,6 +391,7 @@ function TIRESIAS:_SwitchOnGroups(group,radius)
|
|||||||
if ground:CountAlive() > 0 then
|
if ground:CountAlive() > 0 then
|
||||||
ground:ForEachGroupAlive(
|
ground:ForEachGroupAlive(
|
||||||
function(grp)
|
function(grp)
|
||||||
|
local name = grp:GetName()
|
||||||
if grp.Tiresias and grp.Tiresias.type and (not grp.Tiresias.exception == true ) then
|
if grp.Tiresias and grp.Tiresias.type and (not grp.Tiresias.exception == true ) then
|
||||||
if grp.Tiresias.invisible == true then
|
if grp.Tiresias.invisible == true then
|
||||||
grp:SetCommandInvisible(false)
|
grp:SetCommandInvisible(false)
|
||||||
@ -407,7 +408,7 @@ function TIRESIAS:_SwitchOnGroups(group,radius)
|
|||||||
end
|
end
|
||||||
--BASE:I(string.format("TIRESIAS - Switch on %s %s (Exception %s)",tostring(grp.Tiresias.type),grp:GetName(),tostring(grp.Tiresias.exception)))
|
--BASE:I(string.format("TIRESIAS - Switch on %s %s (Exception %s)",tostring(grp.Tiresias.type),grp:GetName(),tostring(grp.Tiresias.exception)))
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
@ -2109,7 +2109,7 @@ function ARMYGROUP:_InitGroup(Template, Delay)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
self:I(self.lid.."FF Initializing Group")
|
self:T(self.lid.."FF Initializing Group")
|
||||||
|
|
||||||
-- Get template of group.
|
-- Get template of group.
|
||||||
local template=Template or self:_GetTemplate()
|
local template=Template or self:_GetTemplate()
|
||||||
|
|||||||
@ -367,7 +367,7 @@ function GROUP:GetDCSObject()
|
|||||||
return DCSGroup
|
return DCSGroup
|
||||||
end
|
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
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user