Use actor names instead of searching for actors with a type
This commit is contained in:
committed by
Matthias Mailänder
parent
1abd272862
commit
4173e40a9d
@@ -263,10 +263,10 @@ Actors:
|
|||||||
Actor87: v23
|
Actor87: v23
|
||||||
Location: 9,59
|
Location: 9,59
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor92: jeep
|
Jeep1: jeep
|
||||||
Location: 51,25
|
Location: 51,25
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
Actor93: jeep
|
Jeep2: jeep
|
||||||
Location: 50,25
|
Location: 50,25
|
||||||
Owner: GDI
|
Owner: GDI
|
||||||
Actor94: jeep
|
Actor94: jeep
|
||||||
|
|||||||
@@ -32,10 +32,17 @@ WorldLoaded = function()
|
|||||||
GDI = Player.GetPlayer("GDI")
|
GDI = Player.GetPlayer("GDI")
|
||||||
|
|
||||||
Trigger.AfterDelay(DateTime.Seconds(3), function()
|
Trigger.AfterDelay(DateTime.Seconds(3), function()
|
||||||
Reinforcements.ReinforceWithTransport(GDI, "apc", Apc1Units, Apc1Waypoints, nil,
|
local apc = Actor.Create("apc", true, { Owner = GDI, Location = Apc1Waypoints[1], Cargo = Apc1Units })
|
||||||
function(transport, cargo)
|
Utils.Do(Apc1Waypoints, function(waypoint)
|
||||||
Utils.Do(cargo, IdleHunt)
|
apc.AttackMove(waypoint)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Trigger.OnEnteredFootprint(Apc3Trigger, function(a, id)
|
||||||
|
if a.Owner == Nod then
|
||||||
|
MoveAndHunt({ apc }, Apc3Waypoints)
|
||||||
|
Trigger.RemoveFootprintTrigger(id)
|
||||||
|
end
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnEnteredFootprint(SouthernBridgeTrigger, function(a, id)
|
Trigger.OnEnteredFootprint(SouthernBridgeTrigger, function(a, id)
|
||||||
@@ -46,18 +53,11 @@ WorldLoaded = function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnDiscovered(Convoi, function()
|
Trigger.OnDiscovered(Convoi, function()
|
||||||
MoveAndHunt(Utils.Take(2, GDI.GetActorsByType("jeep")), Hummer1Waypoints)
|
MoveAndHunt({ Jeep1, Jeep2 }, Hummer1Waypoints)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnAllRemovedFromWorld(Apc2Trigger, function()
|
Trigger.OnAllRemovedFromWorld(Apc2Trigger, function()
|
||||||
MoveAndHunt(Utils.Take(1, GDI.GetActorsByType("apc")), Apc2Waypoints)
|
MoveAndHunt({ Convoi }, Apc2Waypoints)
|
||||||
end)
|
|
||||||
|
|
||||||
Trigger.OnEnteredFootprint(Apc3Trigger, function(a, id)
|
|
||||||
if a.Owner == Nod then
|
|
||||||
MoveAndHunt(Utils.Take(1, GDI.GetActorsByType("apc")), Apc3Waypoints)
|
|
||||||
Trigger.RemoveFootprintTrigger(id)
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnAllRemovedFromWorld(TargetActors, function()
|
Trigger.OnAllRemovedFromWorld(TargetActors, function()
|
||||||
|
|||||||
Reference in New Issue
Block a user