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