Replace deprecated API usage.
This commit is contained in:
@@ -68,7 +68,7 @@ ProduceUnits = function(factory, count)
|
||||
end
|
||||
|
||||
SetupAlliedUnits = function()
|
||||
Tanya = Actor.Create(TanyaType, true, { Owner = player, Location = TanyaWaypoint.Location, Facing = 128 })
|
||||
Tanya = Actor.Create(TanyaType, true, { Owner = player, Location = TanyaWaypoint.Location, Facing = Angle.South })
|
||||
|
||||
if TanyaType == "e7.noautotarget" then
|
||||
Trigger.AfterDelay(DateTime.Seconds(2), function()
|
||||
@@ -89,13 +89,13 @@ SetupTopRightIsland = function()
|
||||
player.MarkCompletedObjective(FindAllies)
|
||||
Media.PlaySpeechNotification(player, "AlliedReinforcementsArrived")
|
||||
Reinforcements.Reinforce(player, AlliedIslandReinforcements, { AlliedIslandReinforcementsEntry.Location, IslandParadropReinforcementsDropzone.Location })
|
||||
SendUSSRParadrops(128 + 52, IslandParadropReinforcementsDropzone)
|
||||
SendUSSRParadrops(Angle.New(720), IslandParadropReinforcementsDropzone)
|
||||
end
|
||||
|
||||
SendUSSRParadrops = function(facing, dropzone)
|
||||
local paraproxy = Actor.Create("powerproxy.paratroopers", false, { Owner = ussr })
|
||||
|
||||
local aircraft = paraproxy.ActivateParatroopers(dropzone.CenterPosition, facing)
|
||||
local aircraft = paraproxy.TargetParatroopers(dropzone.CenterPosition, facing)
|
||||
Utils.Do(aircraft, function(a)
|
||||
Trigger.OnPassengerExited(a, function(t, p)
|
||||
IdleHunt(p)
|
||||
@@ -336,7 +336,7 @@ InitTriggers = function()
|
||||
if a.Owner == player and a.Type ~= "jeep.mission" and not paradropsTriggered then
|
||||
paradropsTriggered = true
|
||||
Trigger.RemoveFootprintTrigger(id)
|
||||
SendUSSRParadrops(54, ParadropReinforcementsDropzone)
|
||||
SendUSSRParadrops(Angle.New(216), ParadropReinforcementsDropzone)
|
||||
end
|
||||
end)
|
||||
Trigger.OnEnteredFootprint(ReinforcementsTriggerArea, function(a, id)
|
||||
|
||||
Reference in New Issue
Block a user