From 99006a02ed90db287c1643fb06c9e12415b6c644 Mon Sep 17 00:00:00 2001 From: Smittytron Date: Sat, 18 Sep 2021 12:13:03 -0500 Subject: [PATCH] Add destroy triggers for prison actors in Allies03a --- mods/ra/maps/allies-03a/allies03a.lua | 7 +++++++ mods/ra/maps/allies-03a/map.yaml | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/mods/ra/maps/allies-03a/allies03a.lua b/mods/ra/maps/allies-03a/allies03a.lua index 5f9cee24f4..3aefad22b5 100644 --- a/mods/ra/maps/allies-03a/allies03a.lua +++ b/mods/ra/maps/allies-03a/allies03a.lua @@ -263,6 +263,13 @@ InitTriggers = function() player.MarkCompletedObjective(KillUSSR) end) end) + + Trigger.OnKilled(Jail1Barrel, function() + Jail1.Destroy() + end) + Trigger.OnKilled(Jail2Barrel, function() + Jail2.Destroy() + end) end WorldLoaded = function() diff --git a/mods/ra/maps/allies-03a/map.yaml b/mods/ra/maps/allies-03a/map.yaml index 95189fdb7e..152d0404d3 100644 --- a/mods/ra/maps/allies-03a/map.yaml +++ b/mods/ra/maps/allies-03a/map.yaml @@ -512,7 +512,7 @@ Actors: Actor155: v19 Location: 57,61 Owner: USSR - Actor156: brl3 + Jail1Barrel: brl3 Location: 58,61 Owner: USSR Actor157: barl @@ -575,7 +575,7 @@ Actors: Actor189: barl Location: 59,69 Owner: USSR - Actor191: brl3 + Jail2Barrel: brl3 Location: 56,67 Owner: USSR Actor191b: brl3