Let the 2nd civilian panic when his mate gets electrocuted.
This commit is contained in:
committed by
reaperrr
parent
6130d5622c
commit
5b870be83f
@@ -123,6 +123,12 @@ CiviliansKilled = function()
|
|||||||
collateralDamage = true
|
collateralDamage = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
LostMate = function()
|
||||||
|
if not Civilian2.IsDead then
|
||||||
|
Civilian2.Panic()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
CreateEinstein = function()
|
CreateEinstein = function()
|
||||||
player.MarkCompletedObjective(FindEinsteinObjective)
|
player.MarkCompletedObjective(FindEinsteinObjective)
|
||||||
Media.PlaySpeechNotification(player, "ObjectiveMet")
|
Media.PlaySpeechNotification(player, "ObjectiveMet")
|
||||||
@@ -205,6 +211,7 @@ WorldLoaded = function()
|
|||||||
collateralDamage = false
|
collateralDamage = false
|
||||||
civilianTeam = { Civilian1, Civilian2 }
|
civilianTeam = { Civilian1, Civilian2 }
|
||||||
Trigger.OnAnyKilled(civilianTeam, CiviliansKilled)
|
Trigger.OnAnyKilled(civilianTeam, CiviliansKilled)
|
||||||
|
Trigger.OnKilled(Civilian1, LostMate)
|
||||||
|
|
||||||
SetUnitStances()
|
SetUnitStances()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user