mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Updates
This commit is contained in:
@@ -141,10 +141,10 @@ AI_FORMATION.__Enum.Formation = {
|
||||
-- @field #number Mission
|
||||
-- @field #number Formation
|
||||
AI_FORMATION.__Enum.Mode = {
|
||||
Mission = 0,
|
||||
Formation = 1,
|
||||
Attack = 2,
|
||||
Reconnaissance = 3,
|
||||
Mission = "M",
|
||||
Formation = "F",
|
||||
Attack = "A",
|
||||
Reconnaissance = "R",
|
||||
}
|
||||
|
||||
|
||||
@@ -952,6 +952,22 @@ function AI_FORMATION:SetFlightRandomization( FlightRandomization ) --R2.1
|
||||
end
|
||||
|
||||
|
||||
--- Gets your escorts to flight mode.
|
||||
-- @param #AI_FORMATION self
|
||||
-- @param Wrapper.Group#GROUP FollowGroup FollowGroup.
|
||||
-- @return #AI_FORMATION
|
||||
function AI_FORMATION:GetFlightMode( FollowGroup )
|
||||
|
||||
if FollowGroup then
|
||||
FollowGroup:SetState( FollowGroup, "PreviousMode", FollowGroup:GetState( FollowGroup, "Mode" ) )
|
||||
FollowGroup:SetState( FollowGroup, "Mode", self.__Enum.Mode.Mission )
|
||||
end
|
||||
|
||||
|
||||
return FollowGroup:GetState( FollowGroup, "Mode" )
|
||||
end
|
||||
|
||||
|
||||
|
||||
--- This sets your escorts to fly a mission.
|
||||
-- @param #AI_FORMATION self
|
||||
|
||||
Reference in New Issue
Block a user