launch a Nod attack after 15 seconds
This commit is contained in:
@@ -8,6 +8,18 @@ MissionFailed = function()
|
|||||||
Media.PlayMovieFullscreen("gameover.vqa")
|
Media.PlayMovieFullscreen("gameover.vqa")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
AttackPlayer = function()
|
||||||
|
if not Actor.IsDead(NodBarracks) then
|
||||||
|
Production.BuildWithPerFactoryQueue(NodBarracks, "e1", 5)
|
||||||
|
attackSquad = Team.New(Map.FindUnitsInCircle(enemy, NodBarracks.location, 3))
|
||||||
|
Team.Do(attackSquad, function(unit)
|
||||||
|
Actor.AttackMove(unit, waypoint9.location)
|
||||||
|
Actor.Hunt(unit)
|
||||||
|
end)
|
||||||
|
Team.AddEventHandler(attackSquad.OnAllKilled, OpenRA.RunAfterDelay(Utils.Seconds(15), AttackPlayer))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
WorldLoaded = function()
|
WorldLoaded = function()
|
||||||
player = OpenRA.GetPlayer("GDI")
|
player = OpenRA.GetPlayer("GDI")
|
||||||
enemy = OpenRA.GetPlayer("Nod")
|
enemy = OpenRA.GetPlayer("Nod")
|
||||||
@@ -16,6 +28,7 @@ WorldLoaded = function()
|
|||||||
|
|
||||||
samSites = Team.New({ Sam1, Sam2, Sam3, Sam4 })
|
samSites = Team.New({ Sam1, Sam2, Sam3, Sam4 })
|
||||||
Team.AddEventHandler(samSites.OnAllKilled, function() Actor.Create("PowerProxy.AirSupport", { Owner = player }) end)
|
Team.AddEventHandler(samSites.OnAllKilled, function() Actor.Create("PowerProxy.AirSupport", { Owner = player }) end)
|
||||||
|
OpenRA.RunAfterDelay(Utils.Seconds(15), AttackPlayer)
|
||||||
end
|
end
|
||||||
|
|
||||||
Tick = function()
|
Tick = function()
|
||||||
|
|||||||
@@ -392,7 +392,7 @@ Actors:
|
|||||||
Owner: Nod
|
Owner: Nod
|
||||||
Health: 1
|
Health: 1
|
||||||
Facing: 0
|
Facing: 0
|
||||||
Actor111: hand
|
NodBarracks: hand
|
||||||
Location: 24,26
|
Location: 24,26
|
||||||
Owner: Nod
|
Owner: Nod
|
||||||
Health: 1
|
Health: 1
|
||||||
@@ -913,8 +913,6 @@ Rules:
|
|||||||
-Buildable:
|
-Buildable:
|
||||||
GUN:
|
GUN:
|
||||||
-Buildable:
|
-Buildable:
|
||||||
GTWR:
|
|
||||||
-Buildable:
|
|
||||||
ATWR:
|
ATWR:
|
||||||
-Buildable:
|
-Buildable:
|
||||||
E3:
|
E3:
|
||||||
|
|||||||
Reference in New Issue
Block a user