Replace deprecated API usage.
This commit is contained in:
@@ -189,7 +189,7 @@ WTransWaves = function()
|
||||
end
|
||||
|
||||
Paradrop = function()
|
||||
local aircraft = PowerProxy.ActivateParatroopers(Utils.Random(ParadropLZs))
|
||||
local aircraft = PowerProxy.TargetParatroopers(Utils.Random(ParadropLZs))
|
||||
Utils.Do(aircraft, function(a)
|
||||
Trigger.OnPassengerExited(a, function(t, p)
|
||||
IdleHunt(p)
|
||||
@@ -218,7 +218,7 @@ SendParabombs = function()
|
||||
end)
|
||||
|
||||
if #targets > 0 then
|
||||
airfield.SendAirstrike(Utils.Random(targets).CenterPosition, true, 0)
|
||||
airfield.TargetAirstrike(Utils.Random(targets).CenterPosition)
|
||||
end
|
||||
|
||||
Trigger.AfterDelay(DateTime.Minutes(BombDelays), SendParabombs)
|
||||
|
||||
@@ -90,7 +90,7 @@ DefendChronosphereCompleted = function()
|
||||
local cells = Utils.ExpandFootprint({ ChronoshiftLocation.Location }, false)
|
||||
local units = { }
|
||||
for i = 1, #cells do
|
||||
local unit = Actor.Create("2tnk", true, { Owner = greece, Facing = 0 })
|
||||
local unit = Actor.Create("2tnk", true, { Owner = greece, Facing = Angle.North })
|
||||
units[unit] = cells[i]
|
||||
end
|
||||
Chronosphere.Chronoshift(units)
|
||||
|
||||
Reference in New Issue
Block a user