Remove unused waypoints from Soviet02a

This commit is contained in:
Smittytron
2018-10-28 17:30:20 -05:00
committed by abcdefg30
parent fc6ada38f4
commit 557c87eecb
2 changed files with 26 additions and 74 deletions

View File

@@ -60,20 +60,20 @@ WorldLoaded = function()
end)
-- Find the bridge actors
bridgepart1 = Map.ActorsInBox(waypoint23.CenterPosition, waypoint49.CenterPosition, function(self) return self.Type == "br1" end)[1]
bridgepart2 = Map.ActorsInBox(waypoint23.CenterPosition, waypoint49.CenterPosition, function(self) return self.Type == "br2" end)[1]
bridgepart1 = Map.ActorsInBox(Box1.CenterPosition, Box2.CenterPosition, function(self) return self.Type == "br1" end)[1]
bridgepart2 = Map.ActorsInBox(Box1.CenterPosition, Box2.CenterPosition, function(self) return self.Type == "br2" end)[1]
end)
-- Discover the area around the bridge exposing the two german soldiers
-- When the two infantry near the bridge are discovered move them across the bridge to waypoint4
-- in the meanwhile one USSR soldier hunts them down
Trigger.AfterDelay(DateTime.Seconds(1), function()
Actor.Create("camera", true, { Owner = player, Location = waypoint23.Location })
Actor.Create("camera", true, { Owner = player, Location = Box1.Location })
Utils.Do(FleeingUnits, function(unit)
unit.Move(waypoint4.Location)
unit.Move(RifleRetreat.Location)
end)
Follower.AttackMove(waypoint4.Location)
Follower.AttackMove(RifleRetreat.Location)
end)
-- To make it look more smooth we will blow up the bridge when the barrel closest to it blows up