mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
DCS, Detection, Controllable, Group
This commit is contained in:
@@ -356,6 +356,8 @@ end
|
||||
|
||||
--- Clearing the Task Queue and Setting the Task on the queue from the controllable.
|
||||
-- @param #CONTROLLABLE self
|
||||
-- @param #DCS.Task DCSTask DCS Task array.
|
||||
-- @param #number WaitTime Time in seconds, before the task is set.
|
||||
-- @return Wrapper.Controllable#CONTROLLABLE self
|
||||
function CONTROLLABLE:SetTask( DCSTask, WaitTime )
|
||||
self:F2( { DCSTask = DCSTask } )
|
||||
@@ -424,6 +426,17 @@ end
|
||||
function CONTROLLABLE:TaskCondition( time, userFlag, userFlagValue, condition, duration, lastWayPoint )
|
||||
self:F2( { time, userFlag, userFlagValue, condition, duration, lastWayPoint } )
|
||||
|
||||
--[[
|
||||
StopCondition = {
|
||||
time = Time,
|
||||
userFlag = string,
|
||||
userFlagValue = boolean,
|
||||
condition = string,
|
||||
duration = Time,
|
||||
lastWaypoint = number,
|
||||
}
|
||||
--]]
|
||||
|
||||
local DCSStopCondition = {}
|
||||
DCSStopCondition.time = time
|
||||
DCSStopCondition.userFlag = userFlag
|
||||
|
||||
@@ -856,7 +856,7 @@ function GROUP:IsCompletelyInZone( Zone )
|
||||
return true
|
||||
end
|
||||
|
||||
--- Returns true if some units of the group are within a @{Zone}.
|
||||
--- Returns true if some but NOT ALL units of the group are within a @{Zone}.
|
||||
-- @param #GROUP self
|
||||
-- @param Core.Zone#ZONE_BASE Zone The zone to test.
|
||||
-- @return #boolean Returns true if the Group is partially within the @{Core.Zone#ZONE_BASE}
|
||||
@@ -884,6 +884,14 @@ function GROUP:IsPartlyInZone( Zone )
|
||||
end
|
||||
end
|
||||
|
||||
--- Returns true if part or all units of the group are within a @{Zone}.
|
||||
-- @param #GROUP self
|
||||
-- @param Core.Zone#ZONE_BASE Zone The zone to test.
|
||||
-- @return #boolean Returns true if the Group is partially or completely within the @{Core.Zone#ZONE_BASE}.
|
||||
function GROUP:IsPartlyOrCompletelyInZone( Zone )
|
||||
return self:IsPartlyInZone(Zone) or self:IsCompletelyInZone(Zone)
|
||||
end
|
||||
|
||||
--- Returns true if none of the group units of the group are within a @{Zone}.
|
||||
-- @param #GROUP self
|
||||
-- @param Core.Zone#ZONE_BASE Zone The zone to test.
|
||||
|
||||
Reference in New Issue
Block a user