mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
ESCORT Updated
This commit is contained in:
@@ -185,6 +185,7 @@ function GROUP:Find( DCSGroup )
|
||||
|
||||
local GroupName = DCSGroup:getName() -- Group#GROUP
|
||||
local GroupFound = _DATABASE:FindGroup( GroupName )
|
||||
GroupFound:E( { GroupName, GroupFound:GetClassNameAndID() } )
|
||||
return GroupFound
|
||||
end
|
||||
|
||||
@@ -517,13 +518,14 @@ end
|
||||
|
||||
|
||||
function GROUP:TaskFunction( WayPoint, WayPointIndex, FunctionString, FunctionArguments )
|
||||
self:F2( { WayPoint, WayPointIndex, FunctionString, FunctionArguments } )
|
||||
|
||||
local DCSTask
|
||||
|
||||
local DCSScript = {}
|
||||
DCSScript[#DCSScript+1] = "local MissionGroup = GROUP:Find( ... ) "
|
||||
|
||||
if FunctionArguments.n > 0 then
|
||||
if FunctionArguments and #FunctionArguments > 0 then
|
||||
DCSScript[#DCSScript+1] = FunctionString .. "( MissionGroup, " .. table.concat( FunctionArguments, "," ) .. ")"
|
||||
else
|
||||
DCSScript[#DCSScript+1] = FunctionString .. "( MissionGroup )"
|
||||
|
||||
Reference in New Issue
Block a user