Fix breakage of the old Lua API due to recent changes
Specifically, the CPos::CenterPosition -> Map::CenterOfCell rename (#5758), as well as the additional argument to Paradrop::SetLZ (#5695).
This commit is contained in:
@@ -11,7 +11,7 @@ end
|
||||
AttackPlayer = function()
|
||||
if not Actor.IsDead(NodBarracks) then
|
||||
Production.BuildWithPerFactoryQueue(NodBarracks, "e1", 5)
|
||||
attackSquad = Team.New(Map.FindUnitsInCircle(enemy, NodBarracks.location, 3))
|
||||
attackSquad = Team.New(Map.FindUnitsInCircle(enemy, NodBarracks, 3))
|
||||
Team.Do(attackSquad, function(unit)
|
||||
Actor.AttackMove(unit, waypoint9.location)
|
||||
Actor.Hunt(unit)
|
||||
@@ -38,4 +38,4 @@ Tick = function()
|
||||
if Mission.RequiredUnitsAreDestroyed(enemy) then
|
||||
MissionAccomplished()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -22,7 +22,7 @@ HeliAction = function(heliActor, team)
|
||||
Actor.AfterMove(heliActor)
|
||||
Actor.UnloadCargo(heliActor, true)
|
||||
Actor.Wait(heliActor, Utils.Seconds(2))
|
||||
Actor.ScriptedMove(heliActor, NodHeliEntry)
|
||||
Actor.ScriptedMove(heliActor, NodHeliEntry.Location)
|
||||
Actor.RemoveSelf(heliActor)
|
||||
|
||||
Team.Do(team, function(actor)
|
||||
|
||||
@@ -18,7 +18,7 @@ HeliAction = function(heliActor, team)
|
||||
Actor.AfterMove(heliActor)
|
||||
Actor.UnloadCargo(heliActor, true)
|
||||
Actor.Wait(heliActor, Utils.Seconds(2))
|
||||
Actor.ScriptedMove(heliActor, HeliEntry)
|
||||
Actor.ScriptedMove(heliActor, HeliEntry.Location)
|
||||
Actor.RemoveSelf(heliActor)
|
||||
|
||||
Team.Do(team, function(actor)
|
||||
|
||||
Reference in New Issue
Block a user