Kill pillboxes with barrels in Soviet01

This commit is contained in:
Smittytron
2021-01-23 10:05:14 -06:00
committed by reaperrr
parent 9580d61fb0
commit 4db2fd980a
2 changed files with 17 additions and 7 deletions

View File

@@ -21,23 +21,23 @@ LockPreview: True
Players:
PlayerReference@France:
Name: France
Bot: campaign
Faction: allies
Color: 5CC1A3
Allies: Germany
Enemies: USSR
Bot: campaign
PlayerReference@Germany:
Name: Germany
Bot: campaign
NonCombatant: True
Faction: allies
Color: 505050
Allies: France
Enemies: USSR
Bot: campaign
PlayerReference@USSR:
Name: USSR
Playable: True
AllowBots: False
Playable: True
Required: True
LockFaction: True
Faction: soviet
@@ -389,19 +389,19 @@ Actors:
Actor114: brl3
Location: 49,55
Owner: Germany
Actor115: barl
PillboxBarrel2: barl
Location: 48,55
Owner: Germany
Actor116: barl
Location: 47,56
Owner: Germany
Actor117: brl3
PillboxBarrel1: brl3
Location: 46,56
Owner: Germany
Actor118: pbox
Pillbox1: pbox
Location: 46,55
Owner: France
Actor119: pbox
Pillbox2: pbox
Location: 48,54
Owner: France
Actor120: barl

View File

@@ -102,6 +102,16 @@ WorldLoaded = function()
Trigger.AfterDelay(DateTime.Seconds(2), InsertYaks)
Paratroopers()
Trigger.OnDamaged(HayHouse, PanicAttack)
Trigger.OnKilled(PillboxBarrel1, function()
if not Pillbox1.IsDead then
Pillbox1.Kill()
end
end)
Trigger.OnKilled(PillboxBarrel2, function()
if not Pillbox2.IsDead then
Pillbox2.Kill()
end
end)
end
Tick = function()