Correct landing craft passenger subcells

This commit is contained in:
JovialFeline
2024-03-09 10:27:13 -05:00
committed by Gustas
parent 799c4c9e3c
commit ec09e618ff

View File

@@ -31,7 +31,12 @@ end
ReinforceWithLandingCraft = function(player, units, transportStart, transportUnload, rallypoint)
local transport = Actor.Create("lst", true, { Owner = player, Facing = Angle.North, Location = transportStart })
local subcell = 0
local subcell = 1
if #units == 1 then
subcell = 0
end
Utils.Do(units, function(a)
transport.LoadPassenger(Actor.Create(a, false, { Owner = transport.Owner, Facing = transport.Facing, Location = transportUnload, SubCell = subcell }))
subcell = subcell + 1