mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update Controllable.lua
This commit is contained in:
parent
4e49184da2
commit
517d5860fb
@ -1063,7 +1063,7 @@ end
|
||||
-- @param #number Duration (Optional) The maximum duration in seconds to wait until all groups have embarked.
|
||||
-- @param #table Distribution (Optional) Distribution used to put the infantry groups into specific carrier units.
|
||||
-- @return DCS#Task The DCS task structure.
|
||||
function CONTROLLABLE:TaskEmbarking(Vec2, GroupSetForEmbarking, Duration, Distribution)
|
||||
function CONTROLLABLE:TaskEmbarking(Coordinate, GroupSetForEmbarking, Duration, Distribution)
|
||||
|
||||
-- Table of group IDs for embarking.
|
||||
local g4e={}
|
||||
@ -1091,9 +1091,8 @@ function CONTROLLABLE:TaskEmbarking(Vec2, GroupSetForEmbarking, Duration, Distri
|
||||
id = 'Embarking',
|
||||
params = {
|
||||
selectedTransport = groupID,
|
||||
Vec2 = Vec2,
|
||||
x = Vec2.x,
|
||||
y = Vec2.y,
|
||||
x = Coordinate.x,
|
||||
y = Coordinate.z,
|
||||
groupsForEmbarking = g4e,
|
||||
durationFlag = Duration and true or false,
|
||||
duration = Duration,
|
||||
@ -1149,8 +1148,8 @@ function CONTROLLABLE:TaskDisembarking(Coordinate, GroupSetToDisembark)
|
||||
return nil
|
||||
end
|
||||
|
||||
local DisembarkFromTransport={
|
||||
id="DisembarkFromTransport",
|
||||
local Disembarking={
|
||||
id = "Disembarking",
|
||||
params = {
|
||||
x = Coordinate.x,
|
||||
y = Coordinate.z,
|
||||
@ -1158,7 +1157,7 @@ function CONTROLLABLE:TaskDisembarking(Coordinate, GroupSetToDisembark)
|
||||
}
|
||||
}
|
||||
|
||||
return DisembarkFromTransport
|
||||
return Disembarking
|
||||
end
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user