Capturing also fires OnRemovedFromWorld
This commit is contained in:
@@ -189,8 +189,10 @@ InitTriggers = function()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
Trigger.OnAllRemovedFromWorld(FirstUSSRBase, function() -- The camera can remain when one building is captured
|
||||
if baseCamera then baseCamera.Destroy() end
|
||||
Trigger.OnAllRemovedFromWorld(FirstUSSRBase, function()
|
||||
if baseCamera then
|
||||
baseCamera.Destroy()
|
||||
end
|
||||
end)
|
||||
|
||||
Utils.Do(SecondUSSRBase, function(unit)
|
||||
|
||||
@@ -248,8 +248,10 @@ InitTriggers = function()
|
||||
AlertFirstBase()
|
||||
end)
|
||||
end)
|
||||
Trigger.OnAllRemovedFromWorld(FirstUSSRBase, function() -- The camera can remain when one building is captured
|
||||
if baseCamera then baseCamera.Destroy() end
|
||||
Trigger.OnAllRemovedFromWorld(FirstUSSRBase, function()
|
||||
if baseCamera then
|
||||
baseCamera.Destroy()
|
||||
end
|
||||
end)
|
||||
|
||||
Trigger.OnDamaged(USSRBarracks3, function()
|
||||
|
||||
Reference in New Issue
Block a user