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 #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.
|
-- @param #table Distribution (Optional) Distribution used to put the infantry groups into specific carrier units.
|
||||||
-- @return DCS#Task The DCS task structure.
|
-- @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.
|
-- Table of group IDs for embarking.
|
||||||
local g4e={}
|
local g4e={}
|
||||||
@ -1091,9 +1091,8 @@ function CONTROLLABLE:TaskEmbarking(Vec2, GroupSetForEmbarking, Duration, Distri
|
|||||||
id = 'Embarking',
|
id = 'Embarking',
|
||||||
params = {
|
params = {
|
||||||
selectedTransport = groupID,
|
selectedTransport = groupID,
|
||||||
Vec2 = Vec2,
|
x = Coordinate.x,
|
||||||
x = Vec2.x,
|
y = Coordinate.z,
|
||||||
y = Vec2.y,
|
|
||||||
groupsForEmbarking = g4e,
|
groupsForEmbarking = g4e,
|
||||||
durationFlag = Duration and true or false,
|
durationFlag = Duration and true or false,
|
||||||
duration = Duration,
|
duration = Duration,
|
||||||
@ -1149,8 +1148,8 @@ function CONTROLLABLE:TaskDisembarking(Coordinate, GroupSetToDisembark)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local DisembarkFromTransport={
|
local Disembarking={
|
||||||
id="DisembarkFromTransport",
|
id = "Disembarking",
|
||||||
params = {
|
params = {
|
||||||
x = Coordinate.x,
|
x = Coordinate.x,
|
||||||
y = Coordinate.z,
|
y = Coordinate.z,
|
||||||
@ -1158,7 +1157,7 @@ function CONTROLLABLE:TaskDisembarking(Coordinate, GroupSetToDisembark)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return DisembarkFromTransport
|
return Disembarking
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user