Remove unused waypoints from Soviet02a
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user