Resolve a TODO in allies03a.lua
This commit is contained in:
@@ -160,12 +160,20 @@ InitTriggers = function()
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
local baseTrigger = Trigger.OnEnteredFootprint(CameraTriggerArea, function(a, id)
|
||||||
|
if a.Owner == player and not baseCamera then
|
||||||
|
Trigger.RemoveFootprintTrigger(id)
|
||||||
|
baseCamera = Actor.Create("camera", true, { Owner = player, Location = BaseCameraWaypoint.Location })
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
Utils.Do(FirstUSSRBase, function(unit)
|
Utils.Do(FirstUSSRBase, function(unit)
|
||||||
Trigger.OnDamaged(unit, function()
|
Trigger.OnDamaged(unit, function()
|
||||||
if not FirstBaseAlert then
|
if not FirstBaseAlert then
|
||||||
FirstBaseAlert = true
|
FirstBaseAlert = true
|
||||||
if not baseCamera then -- TODO: remove the Trigger
|
if not baseCamera then
|
||||||
baseCamera = Actor.Create("camera", true, { Owner = player, Location = BaseCameraWaypoint.Location })
|
baseCamera = Actor.Create("camera", true, { Owner = player, Location = BaseCameraWaypoint.Location })
|
||||||
|
Trigger.RemoveFootprintTrigger(baseTrigger)
|
||||||
end
|
end
|
||||||
Utils.Do(FirstUSSRBase, function(unit)
|
Utils.Do(FirstUSSRBase, function(unit)
|
||||||
if unit.HasProperty("Move") then
|
if unit.HasProperty("Move") then
|
||||||
@@ -215,12 +223,6 @@ InitTriggers = function()
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnEnteredFootprint(CameraTriggerArea, function(a, id)
|
|
||||||
if a.Owner == player and not baseCamera then
|
|
||||||
Trigger.RemoveFootprintTrigger(id)
|
|
||||||
baseCamera = Actor.Create("camera", true, { Owner = player, Location = BaseCameraWaypoint.Location })
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
Trigger.OnEnteredFootprint(WaterTransportTriggerArea, function(a, id)
|
Trigger.OnEnteredFootprint(WaterTransportTriggerArea, function(a, id)
|
||||||
if a.Owner == player and not waterTransportTriggered then
|
if a.Owner == player and not waterTransportTriggered then
|
||||||
waterTransportTriggered = true
|
waterTransportTriggered = true
|
||||||
|
|||||||
Reference in New Issue
Block a user